From 89dce8123f22aa5d26fd1a4bdb8bb0ba2b65c7f7 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Thu, 14 Sep 2017 16:46:46 +0200 Subject: [PATCH] added pyinstaller batch file --- pyinstaller_make.bat | 4 +--- run_magnetic_trap.py | 8 ++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pyinstaller_make.bat b/pyinstaller_make.bat index 81b3f0a..d5ac479 100644 --- a/pyinstaller_make.bat +++ b/pyinstaller_make.bat @@ -1,12 +1,10 @@ pyinstaller ^ - -y ^ + --noconfirm ^ --additional-hooks-dir=. ^ --hidden-import=packaging ^ --hidden-import=packaging.version ^ --hidden-import=packaging.specifiers ^ --hidden-import=packaging.requirements ^ - -w ^ - --onefile ^ --name MagneticTrap ^ --icon Household-Mouse-Trap.ico ^ run_magnetic_trap.py diff --git a/run_magnetic_trap.py b/run_magnetic_trap.py index 1ae08cd..c43d494 100644 --- a/run_magnetic_trap.py +++ b/run_magnetic_trap.py @@ -1,5 +1,9 @@ from arduino_timetable import run_application -if __name__ == '__main__': +if __name__=='__main__': arduino_commands = {'open': 'o', 'close': 'c'} - run_application(arduino_commands, "It's a trap!") + run_application( + arduino_commands, + "It's a trap!", + icon='Household-Mouse-Trap.ico' + )