Skip to content

Commit

Permalink
try to fix pyinstaller resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Sep 2, 2024
1 parent 92fd4e4 commit 39c09fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Nagstamon/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,3 +1109,8 @@ def __init__(self, **kwds):
RESOURCES = str(Path(__file__).parent.absolute().joinpath('resources'))

print('resources 4: ' + RESOURCES)

# try to fix missing resources path for Windows
if OS == 'Windows':
if r'\_internal\Nagstamon\resources' in RESOURCES:
RESOURCES = RESOURCES.replace(r'\_internal\Nagstamon\resources', r'\_internal\resources')
2 changes: 0 additions & 2 deletions build/requirements/windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ keyring
lxml
pip-system-certs
psutil
# last stable of the 5 series - InnoSetup does not work with Pyinstaller 6
#pyinstaller==5.13.2
pyinstaller
pypiwin32
pyqt6
Expand Down

0 comments on commit 39c09fb

Please sign in to comment.