From f8fde1665e9cbb574f7940ec44a64d981eadd741 Mon Sep 17 00:00:00 2001 From: tatiana Date: Thu, 18 Feb 2010 13:20:22 +0000 Subject: [PATCH] FIX: Win32 frozen exe --- invesalius/invesalius.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/invesalius.py b/invesalius/invesalius.py index 448c35f..2817785 100755 --- a/invesalius/invesalius.py +++ b/invesalius/invesalius.py @@ -238,7 +238,7 @@ if __name__ == '__main__': if not os.path.isdir(dirpath): os.makedirs(dirpath) - if sys.frozen == "windows_exe": + if hasattr(sys,"frozen") and sys.frozen == "windows_exe": # Set system standard error output to file path = os.path.join(dirpath, "stderr.log") sys.stderr = open(path, "w") -- libgit2 0.21.2