use folder_paths for CWD

This commit is contained in:
SayanoAI
2025-06-23 10:47:12 -04:00
parent b28fcaeae8
commit 065a872dec
+1 -3
View File
@@ -4,13 +4,11 @@ import shelve
from contextlib import contextmanager
import sys
import weakref
import folder_paths
@lru_cache
def get_cwd():
import folder_paths
# CWD = os.getcwd()
CWD = folder_paths.base_path
print(f"{CWD=}")
if CWD not in sys.path:
sys.path.append(CWD)
return CWD