From eec810dc6aa8d93656becd91896cf3ebdd52bc57 Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Wed, 11 Aug 2021 11:09:02 +0800 Subject: [PATCH] Update config.py --- configs/config.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/configs/config.py b/configs/config.py index bbb7b29d..9d982528 100644 --- a/configs/config.py +++ b/configs/config.py @@ -204,15 +204,15 @@ HIBIAPI = HIBIAPI[:-1] if HIBIAPI[-1] == "/" else HIBIAPI RSSHUBAPP = RSSHUBAPP[:-1] if RSSHUBAPP[-1] == "/" else RSSHUBAPP # 配置文件应用 -if USE_CONFIG_FILE: - config = get_config_data() - if config: - for key in config.keys(): - if isinstance(config[key], str): - config[key] = config[key].strip() - if key.find("proxy") != -1: - if not config[key]: - config[key] = None - # if not configs[key] and key.find("PATH") == -1: - # configs[key] = None - globals().update(config) +# if USE_CONFIG_FILE: +# config = get_config_data() +# if config: +# for key in config.keys(): +# if isinstance(config[key], str): +# config[key] = config[key].strip() +# if key.find("proxy") != -1: +# if not config[key]: +# config[key] = None +# # if not configs[key] and key.find("PATH") == -1: +# # configs[key] = None +# globals().update(config)