自定义配置路径

This commit is contained in:
Womsxd 2022-10-04 19:31:52 +08:00
parent c6a684318f
commit 435376cef4
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68

View File

@ -44,6 +44,8 @@ config = {
}
path = os.path.dirname(os.path.realpath(__file__)) + "/config"
if os.getenv("AutoMihoyoBBS_path") != "":
path = os.getenv("AutoMihoyoBBS_path")
config_Path_json = f"{path}/config.json"
config_Path = f"{path}/config.yaml"
def copy_config():