Skip to content

Commit

Permalink
Debug HyperNav Module
Browse files Browse the repository at this point in the history
- removed hypernav data from make.py as now included directly in package
  • Loading branch information
doizuc committed Jul 30, 2024
1 parent 7b3be07 commit 7fddd04
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

import PyInstaller.__main__
import pyqtgraph
try:
import hypernav
except ImportError:
hypernav = None


root = os.path.join('.', 'bundle')
Expand Down Expand Up @@ -51,12 +47,6 @@
(os.path.join(os.path.dirname(pyqtgraph.__file__), 'icons', '*.png'), os.path.join('pyqtgraph', 'icons')),
(os.path.join(os.path.dirname(pyqtgraph.__file__), 'icons', '*.svg'), os.path.join('pyqtgraph', 'icons')),
]
if hypernav is not None:
ls.extend([
(os.path.join(os.path.dirname(hypernav.__file__), 'bin', '*.exe'), os.path.join('hypernav', 'bin')),
(os.path.join(os.path.dirname(hypernav.__file__), 'calibrate', 'templates', '*.txt'),
os.path.join('hypernav', 'calibrate', 'templates'))
])
for item, dest in ls:
add_data.append(f'--add-data={os.path.abspath(item)}{data_sep}{dest}')
# Require absolute path for GitHub workflow as data can be on different drive and relpath won't work.
Expand All @@ -77,11 +67,11 @@
f'--distpath={os.path.join(root, "dist")}',
f'--workpath={os.path.join(root, "build")}',
f'--specpath={root}',
'--windowed',
# '--windowed',
'--noconfirm',
# '--log-level=DEBUG',
# '--clean',
'--debug=all',
'--debug=imports',
*add_data,
*hidden_imports,
*os_specific_args,
Expand Down

0 comments on commit 7fddd04

Please sign in to comment.