Commit f8fde1665e9cbb574f7940ec44a64d981eadd741

Authored by tatiana
1 parent a9ad208e

FIX: Win32 frozen exe

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/invesalius.py
... ... @@ -238,7 +238,7 @@ if __name__ == '__main__':
238 238 if not os.path.isdir(dirpath):
239 239 os.makedirs(dirpath)
240 240  
241   - if sys.frozen == "windows_exe":
  241 + if hasattr(sys,"frozen") and sys.frozen == "windows_exe":
242 242 # Set system standard error output to file
243 243 path = os.path.join(dirpath, "stderr.log")
244 244 sys.stderr = open(path, "w")
... ...