aboutsummaryrefslogtreecommitdiff
path: root/modules/paths.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-10 10:29:19 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-10 10:29:19 +0300
commit695c05fb30dad4ad38ed15184925dbe0f96224a4 (patch)
treefc73776bcd35a7f421df0ec019fdac2447a3d664 /modules/paths.py
parent22faf30c0b485d1907ed15fb037b623b3d6a5016 (diff)
prioritize repositories/stable-diffusion path when searching for SD
Diffstat (limited to 'modules/paths.py')
-rw-r--r--modules/paths.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/paths.py b/modules/paths.py
index 6cf5e2b6..49735ea1 100644
--- a/modules/paths.py
+++ b/modules/paths.py
@@ -7,7 +7,7 @@ sys.path.insert(0, script_path)
# search for directory of stable diffsuion in following palces
sd_path = None
-possible_sd_paths = ['.', os.path.dirname(script_path), os.path.join(script_path, 'repositories/stable-diffusion')]
+possible_sd_paths = [os.path.join(script_path, 'repositories/stable-diffusion'), '.', os.path.dirname(script_path)]
for possible_sd_path in possible_sd_paths:
if os.path.exists(os.path.join(possible_sd_path, 'ldm/models/diffusion/ddpm.py')):
sd_path = os.path.abspath(possible_sd_path)