master
yumoqing 2024-03-12 18:33:17 +08:00
parent 744ff585d5
commit ff5311df85
1 changed files with 4 additions and 1 deletions

View File

@ -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)