mirror of
https://github.com/TDSCDMAA/AutoMihoyoBBS.git
synced 2026-06-10 14:12:31 +08:00
防止copy config复制修改后的config
This commit is contained in:
parent
2c5599e79b
commit
509f7a04be
@ -42,6 +42,8 @@ config = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
config_raw = {}
|
||||||
|
config_raw.update(config)
|
||||||
|
|
||||||
path = os.path.dirname(os.path.realpath(__file__)) + "/config"
|
path = os.path.dirname(os.path.realpath(__file__)) + "/config"
|
||||||
if os.getenv("AutoMihoyoBBS_config_path") is not None:
|
if os.getenv("AutoMihoyoBBS_config_path") is not None:
|
||||||
@ -51,7 +53,7 @@ config_Path = f"{path}/config.yaml"
|
|||||||
|
|
||||||
|
|
||||||
def copy_config():
|
def copy_config():
|
||||||
return config
|
return config_raw
|
||||||
|
|
||||||
|
|
||||||
def load_config_json():
|
def load_config_json():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user