diff --git a/scripts/check_modules.py b/scripts/check_modules.py index b3ecfd07..0d58d43d 100644 --- a/scripts/check_modules.py +++ b/scripts/check_modules.py @@ -298,7 +298,7 @@ Thanks!""" def get_config(): config_directory = os.path.dirname(__file__) # this will be "scripts" - config_yaml = os.path.join(config_directory, "..", "config.yaml") + config_yaml = os.path.abspath(os.path.join(config_directory, "..", "config.yaml")) config_json = os.path.join(config_directory, "config.json") config = None diff --git a/scripts/get_config.py b/scripts/get_config.py index 0bcc90a1..58f0e9ff 100644 --- a/scripts/get_config.py +++ b/scripts/get_config.py @@ -6,6 +6,7 @@ import shutil # The config file is in the same directory as this script config_directory = os.path.dirname(__file__) config_yaml = os.path.join(config_directory, "..", "config.yaml") +config_yaml = os.path.abspath(config_yaml) config_json = os.path.join(config_directory, "config.json") parser = argparse.ArgumentParser(description='Get values from config file') diff --git a/ui/easydiffusion/app.py b/ui/easydiffusion/app.py index ec856991..c570c773 100644 --- a/ui/easydiffusion/app.py +++ b/ui/easydiffusion/app.py @@ -119,6 +119,7 @@ def init_render_threads(): def getConfig(default_val=APP_CONFIG_DEFAULTS): config_yaml_path = os.path.join(CONFIG_DIR, "..", "config.yaml") + config_yaml_path = os.path.abspath(config_yaml_path) # migrate the old config yaml location config_legacy_yaml = os.path.join(CONFIG_DIR, "config.yaml")