File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 3232 - Edit VM dialog
3333 - Pathfinder
3434- I try to fix the Pathfinder on compiled binaries on Linux. (30th June, 2024 at 12:45 PM)
35+ - The pathfinder needed some extra lines for Windows.
3536
3637## Known issues
3738
Original file line number Diff line number Diff line change 11import re
2+ import platform
23
34def retrieveExecFolder ():
45 print (__file__ )
56 exec_dir = ""
67
7- if __file__ .endswith (".py" ):
8- exec_dir = re .sub ("services/pathfinder.py$" , "" , __file__ )
8+ if platform .system () == "Windows" :
9+ if __file__ .endswith (".py" ):
10+ exec_dir = re .sub (r"services\\pathfinder.py$" , "" , __file__ )
911
10- elif __file__ .endswith (".pyc" ):
11- exec_dir = re .sub ("services/pathfinder.pyc$" , "" , __file__ )
12+ elif __file__ .endswith (".pyc" ):
13+ exec_dir = re .sub (r"services\\pathfinder.pyc$" , "" , __file__ )
14+
15+ else :
16+ if __file__ .endswith (".py" ):
17+ exec_dir = re .sub ("services/pathfinder.py$" , "" , __file__ )
18+
19+ elif __file__ .endswith (".pyc" ):
20+ exec_dir = re .sub ("services/pathfinder.pyc$" , "" , __file__ )
1221
1322 return exec_dir
1423
You can’t perform that action at this time.
0 commit comments