From 45889f5abfd6286d6768cc87ded87b40af604e44 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Wed, 23 Dec 2009 14:15:59 +0000 Subject: [PATCH] ENH: Removed wxPython window error from executable --- invesalius/invesalius.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/invesalius/invesalius.py b/invesalius/invesalius.py index 844a10f..80da0cc 100755 --- a/invesalius/invesalius.py +++ b/invesalius/invesalius.py @@ -108,9 +108,15 @@ def main(): if __name__ == '__main__': #Necessary in case run from executable - if (sys.platform == "win32"): + if hasattr(sys,"frozen") and sys.frozen == "windows_exe": multiprocessing.freeze_support() - + + #Remove wxPython log + #sys.stdout = open("stdout.log" ,"w") + sys.stderr = open("stderr.log", "w") + + print "Executavel...." + # Add current directory to PYTHONPATH sys.path.append(".") -- libgit2 0.21.2