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