Use 'resolve' instead of 'absolute' for obtaining absolute paths;
gui.py GUI debug now redirects SELF_PATH to main.py as well
This commit is contained in:
1 parent
eae23e367f
commit
d8687b6d1b
2 files changed
+9
-8
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ import sys
|
||||
from pathlib import Path
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
SELF_PATH = str(Path(".").absolute())
|
||||
SELF_PATH = str(Path(".").resolve())
|
||||
if SELF_PATH not in sys.path:
|
||||
sys.path.insert(0, SELF_PATH)
|
||||
|
||||
|
||||
Reference in new issue
Block a user