Skip to content

Commit 03c70a0

Browse files
committed
Potential pathfinder fix
1 parent 59702a6 commit 03c70a0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
- Unnecessary code has been removed from the following modules:
3232
- Edit VM dialog
3333
- Pathfinder
34+
- I try to fix the Pathfinder on compiled binaries on Linux. (30th June, 2024 at 12:45 PM)
3435

3536
## Known issues
3637

services/pathfinder.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
def retrieveExecFolder():
44
print(__file__)
5-
exec_dir = re.sub("services/pathfinder.py$", "", __file__)
5+
exec_dir = ""
6+
7+
if __file__.endswith(".py"):
8+
exec_dir = re.sub("services/pathfinder.py$", "", __file__)
9+
10+
elif __file__.endswith(".pyc"):
11+
exec_dir = re.sub("services/pathfinder.pyc$", "", __file__)
12+
613
return exec_dir
714

815
#retrieveExecFolder()

0 commit comments

Comments
 (0)