Skip to content

Commit 67d8273

Browse files
committed
Fix pathfinder (hopefully)
1 parent 57f6ad2 commit 67d8273

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- Pathfinder
3434
- I try to fix the Pathfinder on compiled binaries on Linux. (30th June, 2024 at 12:45 PM)
3535
- The pathfinder needed some extra lines for Windows.
36+
- The pathfinder should be fixed now, but the `--onefile` argument may no longer be used in PyInstaller.
3637

3738
## Known issues
3839

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ For the update checker, a version code is being used instead of the number. Here
134134
10. With your virtual environment selected, try to run a Python script. If it throws an error, that's okay. We just need to activate the venv anyway.
135135
11. Within the terminal VS Code just opened, type: `pip install --upgrade pip PyInstaller PyQt6 PyQt6-tools PySide6 python-magic-bin requests python-dateutil psutil`
136136
12. After this is done, run the main.py script.
137-
13. To compile the program for users who don't have Python installed, type: `PyInstaller --onefile --icon .\EmuGUI.ico .\emugui.py`
137+
13. To compile the program for users who don't have Python installed, type: `PyInstaller --icon .\EmuGUI.ico .\emugui.py`
138138
14. After that is finished, copy the code into the dist folder PyInstaller created.
139139
15. Run the executable in the dist folder. If your antivirus puts it into quarantine, don't worry as this should be a false positive and restore it.
140140
16. If it works, have fun! If not, try to start again from number 9.
@@ -174,7 +174,7 @@ For the update checker, a version code is being used instead of the number. Here
174174
12. With your virtual environment selected, try to run a Python script. If it throws an error, that's okay. We just need to activate the venv anyway.
175175
13. Within the terminal VS Code just opened, type: `pip install --upgrade pip PyInstaller PySide6 python-magic-bin requests python-dateutil psutil`
176176
14. After this is done, run the main.py script.
177-
15. To compile the program for users who don't have Python installed, type: `PyInstaller --onefile --icon .\EmuGUI.ico .\emugui.py`
177+
15. To compile the program for users who don't have Python installed, type: `PyInstaller --icon .\EmuGUI.ico .\emugui.py`
178178
16. After that is finished, copy the code into the dist folder PyInstaller created.
179179
17. Run the executable in the dist folder. If your antivirus puts it into quarantine, don't worry as this should be a false positive and restore it.
180180
18. If it works, have fun! If not, try to start again from number 9.
@@ -213,7 +213,7 @@ For the update checker, a version code is being used instead of the number. Here
213213
9. Open the venv in VS Code and try to run a Python script with it.
214214
10. Within the VS Code terminal, type: `& pip install --upgrade pip PyInstaller PySide6 python-magic-bin PyQt6 requests python-dateutil psutil`
215215
11. After this is done, run the main.py script.
216-
12. To compile the program for users who don't have Python installed, type: `& PyInstaller --onefile --icon .\EmuGUI.ico .\emugui.py`
216+
12. To compile the program for users who don't have Python installed, type: `& PyInstaller --icon .\EmuGUI.ico .\emugui.py`
217217
13. After that is finished, copy the code into the dist folder PyInstaller created.
218218
14. Run the executable in the dist folder. If your antivirus puts it into quarantine, don't worry as this should be a false positive and restore it.
219219
15. If it works, have fun! If not, try to start again from number 9.
@@ -258,7 +258,7 @@ For the update checker, a version code is being used instead of the number. Here
258258
11. With your virtual environment selected, try to run a Python script. If it throws an error, that's okay. We just need to activate the venv anyway.
259259
12. Within the terminal VS Code just opened, type: `pip install --upgrade pip PyInstaller PySide6 python-magic requests python-dateutil psutil pyqtdarktheme`
260260
13. After this is done, run the main.py script.
261-
14. To compile the program for users who don't have Python installed, type: `PyInstaller --onefile emugui.py` (for those who can get a VENV to work) or `python3 -m PyInstaller --onefile emugui.py`
261+
14. To compile the program for users who don't have Python installed, type: `PyInstaller emugui.py` (for those who can get a VENV to work) or `python3 -m PyInstaller emugui.py`
262262
15. After that is finished, copy the code into the dist folder PyInstaller created.
263263
16. Run the executable in the dist folder. If your antivirus puts it into quarantine, don't worry as this should be a false positive and restore it.
264264
17. If it works, have fun! If not, try to start again from number 7.
@@ -287,7 +287,7 @@ For the update checker, a version code is being used instead of the number. Here
287287
13. With your virtual environment selected, try to run a Python script. If it throws an error, that's okay. We just need to activate the venv anyway.
288288
14. Within the terminal VS Code just opened, type: `pip install --upgrade pip PyInstaller PySide6 python-magic requests python-dateutil psutil pyqtdarktheme`
289289
15. After this is done, run the main.py script.
290-
16. To compile the program for users who don't have Python installed, type: `PyInstaller --onefile .\emugui.py`
290+
16. To compile the program for users who don't have Python installed, type: `PyInstaller .\emugui.py`
291291
17. After that is finished, copy the code into the dist folder PyInstaller created.
292292
18. Run the executable in the dist folder. If your antivirus puts it into quarantine, don't worry as this should be a false positive and restore it.
293293
19. If it works, have fun! If not, try to start again from number 9.
@@ -313,7 +313,7 @@ For the update checker, a version code is being used instead of the number. Here
313313
10. Open the venv in VS Code and try to run a Python script with it.
314314
11. Within the VS Code terminal, type: `& pip install --upgrade pip PyInstaller PySide6 python-magic PyQt6 requests python-dateutil psutil pyqtdarktheme`
315315
12. After this is done, run the main.py script.
316-
13. To compile the program for users who don't have Python installed, type: `& PyInstaller --onefile .\emugui.py`
316+
13. To compile the program for users who don't have Python installed, type: `& PyInstaller .\emugui.py`
317317
14. After that is finished, copy the code into the dist folder PyInstaller created.
318318
15. Run the executable in the dist folder. If your antivirus puts it into quarantine, don't worry as this should be a false positive and restore it.
319319
16. If it works, have fun! If not, try to start again from number 9.

services/pathfinder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ def retrieveExecFolder():
1010
exec_dir = re.sub(r"services\\pathfinder.py$", "", __file__)
1111

1212
elif __file__.endswith(".pyc"):
13-
exec_dir = re.sub(r"services\\pathfinder.pyc$", "", __file__)
13+
exec_dir = re.sub(r"_internal\\services\\pathfinder.pyc$", "", __file__)
1414

1515
else:
1616
if __file__.endswith(".py"):
1717
exec_dir = re.sub("services/pathfinder.py$", "", __file__)
1818

1919
elif __file__.endswith(".pyc"):
20-
exec_dir = re.sub("services/pathfinder.pyc$", "", __file__)
20+
exec_dir = re.sub("_internal/services/pathfinder.pyc$", "", __file__)
2121

2222
return exec_dir
2323

0 commit comments

Comments
 (0)