From ce70af41aeac7839d005566b387aa5925b165422 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 30 Apr 2019 17:26:41 +0200 Subject: [PATCH] added pyinsaller specs --- mia-gui.spec | 32 ++++++++++++++++++++++++++++++++ mtor/gui.py | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 mia-gui.spec diff --git a/mia-gui.spec b/mia-gui.spec new file mode 100644 index 0000000..ea854c8 --- /dev/null +++ b/mia-gui.spec @@ -0,0 +1,32 @@ +# -*- mode: python -*- + +block_cipher = None + + +a = Analysis(['mia-gui.py'], + pathex=['C:\\Users\\Holgi\\Developer\\mtor-image-analysis'], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='mia-gui', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + runtime_tmpdir=None, + console=True ) diff --git a/mtor/gui.py b/mtor/gui.py index 94b4671..c339530 100644 --- a/mtor/gui.py +++ b/mtor/gui.py @@ -183,7 +183,7 @@ def run_gui(): iw = image_workflow(pw.parameters) dw = data_workflow(iw.data, iw.parameters) fw = postprocessing_workflow(dw.data, dw.parameters) - pdf_path = fw.parameters.data_dir / "report.pdf" + pdf_path = dw.parameters.data_dir / "report.pdf" if sys.platform.startswith("win"): os.startfile(str(pdf_path)) else: