Use absolute config path

This commit is contained in:
cmdr2 2023-08-30 15:34:55 +05:30
parent a09441b2c8
commit 56bea46e3a

View File

@ -172,6 +172,7 @@ getConfig.__test_diffusers_on_startup = None
def setConfig(config): def setConfig(config):
try: # config.yaml try: # config.yaml
config_yaml_path = os.path.join(CONFIG_DIR, "..", "config.yaml") config_yaml_path = os.path.join(CONFIG_DIR, "..", "config.yaml")
config_yaml_path = os.path.abspath(config_yaml_path)
yaml = YAML() yaml = YAML()
if not hasattr(config, "_yaml_comment"): if not hasattr(config, "_yaml_comment"):