diff --git a/config.py b/config.py index a746f45..8b88e6b 100644 --- a/config.py +++ b/config.py @@ -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():