Skip to content

Commit 7fddd04

Browse files
committed
Debug HyperNav Module
- removed hypernav data from make.py as now included directly in package
1 parent 7b3be07 commit 7fddd04

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

make.py

+2-12
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
import PyInstaller.__main__
55
import pyqtgraph
6-
try:
7-
import hypernav
8-
except ImportError:
9-
hypernav = None
106

117

128
root = os.path.join('.', 'bundle')
@@ -51,12 +47,6 @@
5147
(os.path.join(os.path.dirname(pyqtgraph.__file__), 'icons', '*.png'), os.path.join('pyqtgraph', 'icons')),
5248
(os.path.join(os.path.dirname(pyqtgraph.__file__), 'icons', '*.svg'), os.path.join('pyqtgraph', 'icons')),
5349
]
54-
if hypernav is not None:
55-
ls.extend([
56-
(os.path.join(os.path.dirname(hypernav.__file__), 'bin', '*.exe'), os.path.join('hypernav', 'bin')),
57-
(os.path.join(os.path.dirname(hypernav.__file__), 'calibrate', 'templates', '*.txt'),
58-
os.path.join('hypernav', 'calibrate', 'templates'))
59-
])
6050
for item, dest in ls:
6151
add_data.append(f'--add-data={os.path.abspath(item)}{data_sep}{dest}')
6252
# Require absolute path for GitHub workflow as data can be on different drive and relpath won't work.
@@ -77,11 +67,11 @@
7767
f'--distpath={os.path.join(root, "dist")}',
7868
f'--workpath={os.path.join(root, "build")}',
7969
f'--specpath={root}',
80-
'--windowed',
70+
# '--windowed',
8171
'--noconfirm',
8272
# '--log-level=DEBUG',
8373
# '--clean',
84-
'--debug=all',
74+
'--debug=imports',
8575
*add_data,
8676
*hidden_imports,
8777
*os_specific_args,

0 commit comments

Comments
 (0)