From 122cfec0cede172d4de0f10454f8c25d2342a5d6 Mon Sep 17 00:00:00 2001 From: belangeo Date: Tue, 9 May 2017 10:00:31 -0400 Subject: [PATCH] Added hidden-import to windows standalone building script. --- scripts/Build_routine_Win32.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Build_routine_Win32.py b/scripts/Build_routine_Win32.py index 4587b6d..a650626 100644 --- a/scripts/Build_routine_Win32.py +++ b/scripts/Build_routine_Win32.py @@ -1,6 +1,9 @@ import os -os.system('pyinstaller --clean -F -c --icon=Resources\Cecilia5.ico "Cecilia5.py"') +flags = "--clean -F -c" +hidden = "--hidden-import wx.adv --hidden-import wx.html --hidden-import wx.xml" +icon = "--icon=Resources\Cecilia5.ico" +os.system('pyinstaller %s %s %s "Cecilia5.py"' % (flags, hidden, icon)) os.system("git checkout-index -a -f --prefix=Cecilia5_Win/") os.system("copy dist\Cecilia5.exe Cecilia5_Win /Y")