diff --git a/pyinstaller.spec b/pyinstaller.spec index 92e8254..fcae9bf 100644 --- a/pyinstaller.spec +++ b/pyinstaller.spec @@ -9,6 +9,8 @@ block_cipher = None spyder_data = Path(site.getsitepackages()[-1]) / 'spyder' parso_grammar = (Path(site.getsitepackages()[-1]) / 'parso/python').glob('grammar*') cqw_path = Path(site.getsitepackages()[-1]) / 'cq_warehouse' +cq_path = Path(site.getsitepackages()[-1]) / 'cadquery' +#cqe_path = Path(site.getsitepackages()[-1]) / 'CQ' if sys.platform == 'linux': occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade') @@ -28,7 +30,8 @@ a = Analysis(['run.py'], binaries=[ocp_path] + binaries1, datas=[(spyder_data, 'spyder'), (occt_dir, 'opencascade'), - (cqw_path, 'cq_warehouse')] + + (cqw_path, 'cq_warehouse'), + (cq_path, 'cadquery')] + [(p, 'parso/python') for p in parso_grammar] + datas1, hiddenimports=['ipykernel.datapub', 'debugpy', 'vtkmodules', 'vtkmodules.all', 'pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5',