bugfix
This commit is contained in:
parent
744ff585d5
commit
ff5311df85
@ -63,6 +63,8 @@ class FileOutZone(Exception):
|
|||||||
def get_config_value(kstr):
|
def get_config_value(kstr):
|
||||||
keys = kstr.split('.')
|
keys = kstr.split('.')
|
||||||
config = getConfig()
|
config = getConfig()
|
||||||
|
if config is None:
|
||||||
|
raise Exception('getConfig() error')
|
||||||
for k in keys:
|
for k in keys:
|
||||||
config = config.get(k)
|
config = config.get(k)
|
||||||
if not config:
|
if not config:
|
||||||
@ -70,7 +72,8 @@ def get_config_value(kstr):
|
|||||||
return config
|
return config
|
||||||
|
|
||||||
def get_definition(k):
|
def get_definition(k):
|
||||||
return get_config_value(f'definition.{k}')
|
k = f'definitions.{k}'
|
||||||
|
return get_config_value(k)
|
||||||
|
|
||||||
def openfile(url,m):
|
def openfile(url,m):
|
||||||
fp = abspath(url)
|
fp = abspath(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user