use folder_paths for CWD
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user