Get full path

This commit is contained in:
Yolan
2023-09-30 18:35:52 -07:00
parent 8a9cafa51f
commit cbba350abf
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
download_path="D:\\Dropbox\\AI Image Generation\\Models" download_path="..\\Models"
+2
View File
@@ -38,6 +38,8 @@ class RemoteLoader:
folder = folder_paths.get_folder_paths(self.path)[0] folder = folder_paths.get_folder_paths(self.path)[0]
full_path = os.path.join(folder, key) full_path = os.path.join(folder, key)
# get absolute path for the full path
full_path = os.path.abspath(full_path)
print("full_path: ", full_path) print("full_path: ", full_path)
# if the file exists return full_path # if the file exists return full_path
if os.path.exists(full_path): if os.path.exists(full_path):