mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 08:57:07 +08:00
[fix]path bug
This commit is contained in:
parent
d680a9ae21
commit
8948d67844
@ -37,7 +37,8 @@ def find_path(name: str, path: str = None) -> str:
|
||||
"""
|
||||
# If no path is given, use the current working directory
|
||||
if path is None:
|
||||
path = os.getcwd()
|
||||
# path = os.getcwd()
|
||||
path = os.path.dirname(__file__)
|
||||
|
||||
# Check if the current directory contains the name
|
||||
if name in os.listdir(path):
|
||||
|
||||
@ -37,7 +37,8 @@ def find_path(name: str, path: str = None) -> str:
|
||||
"""
|
||||
# If no path is given, use the current working directory
|
||||
if path is None:
|
||||
path = os.getcwd()
|
||||
# path = os.getcwd()
|
||||
path = os.path.dirname(__file__)
|
||||
|
||||
# Check if the current directory contains the name
|
||||
if name in os.listdir(path):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user