mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 00:03:20 +01:00
Use absolute config path
This commit is contained in:
parent
a09441b2c8
commit
56bea46e3a
@ -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"):
|
||||||
|
Loading…
Reference in New Issue
Block a user