mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
handle duplicate extensions and redo exception handler
This commit is contained in:
+5
-4
@@ -34,10 +34,11 @@ for d, must_exist, what, options in path_dirs:
|
||||
print(f"Warning: {what} not found at path {must_exist_path}", file=sys.stderr)
|
||||
else:
|
||||
d = os.path.abspath(d)
|
||||
if "atstart" in options:
|
||||
sys.path.insert(0, d)
|
||||
else:
|
||||
sys.path.append(d)
|
||||
# if "atstart" in options:
|
||||
# sys.path.insert(0, d)
|
||||
# else:
|
||||
# sys.path.append(d)
|
||||
sys.path.append(d)
|
||||
paths[what] = d
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user