mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
ea1bf2caa3
commit
e03179744c
12
theme.py
12
theme.py
|
@ -24,13 +24,11 @@ def setThemeInConfig(baseDir: str, name: str) -> bool:
|
||||||
|
|
||||||
def getTheme(baseDir: str) -> str:
|
def getTheme(baseDir: str) -> str:
|
||||||
configFilename = baseDir + '/config.json'
|
configFilename = baseDir + '/config.json'
|
||||||
if not os.path.isfile(configFilename):
|
if os.path.isfile(configFilename):
|
||||||
return 'default'
|
configJson = loadJson(configFilename, 0)
|
||||||
configJson = loadJson(configFilename, 0)
|
if configJson:
|
||||||
if not configJson:
|
if configJson.get('theme'):
|
||||||
return 'default'
|
return configJson['theme']
|
||||||
if configJson.get('theme'):
|
|
||||||
return configJson['theme']
|
|
||||||
return 'default'
|
return 'default'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue