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 Aug 29, 2024
1 parent fd91f01 commit 4e22bf3
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 4e22bf3

Please sign in to comment.