Add custom wildcards path fallback (#677)

This commit is contained in:
bymyself
2024-07-25 01:05:38 +09:00
committed by GitHub
parent 2c19c3e6e1
commit c6c68dd194
+4
View File
@@ -32,6 +32,10 @@ def read_config():
config.read(config_path)
default_conf = config['default']
if not os.path.exists(default_conf['custom_wildcards']):
print(f"[WARN] ComfyUI-Impact-Pack: custom_wildcards path not found: {default_conf['custom_wildcards']}. Using default path.")
default_conf['custom_wildcards'] = os.path.join(my_path, "..", "..", "custom_wildcards")
return {
'dependency_version': int(default_conf['dependency_version']),
'mmdet_skip': default_conf['mmdet_skip'].lower() == 'true' if 'mmdet_skip' in default_conf else True,