Commit 4830f6ed authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

eliminate KKlobal.prefix, only used once

parent 1c546740
......@@ -177,8 +177,9 @@ class KAboutData:
def licenseFile():
"""which may currently only be 1: GPL_V2"""
prefix = QLibraryInfo.location(QLibraryInfo.PrefixPath)
for path in ('COPYING', '../COPYING',
'%s/share/kf5/licenses/GPL_V2' % KGlobal.prefix):
'%s/share/kf5/licenses/GPL_V2' % prefix):
path = os.path.abspath(path)
if os.path.exists(path):
return path
......@@ -736,11 +737,9 @@ class KGlobal:
def initStatic(cls):
"""init class members"""
cls.prefix = QLibraryInfo.location(QLibraryInfo.PrefixPath)
Internal.kajonggrc = KConfig()
class KConfig(ConfigParser):
"""Parse KDE config files.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment