diff options
author | ChrisTerBeke <c.terbeke@ultimaker.com> | 2017-12-04 18:28:35 +0300 |
---|---|---|
committer | ChrisTerBeke <c.terbeke@ultimaker.com> | 2017-12-04 18:28:35 +0300 |
commit | 3c863fc388b0f7e813005f3b50403572d333b9e5 (patch) | |
tree | 920ca329e99cd569b67baf189ed1b5b6f6165849 /cura_app.py | |
parent | 5eeb98bbcf41011bc9f49591aa4727e75803f511 (diff) |
Get default settings view to work as sidebar component
Diffstat (limited to 'cura_app.py')
-rwxr-xr-x | cura_app.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cura_app.py b/cura_app.py index d725bc1200..dd795e5aa4 100755 --- a/cura_app.py +++ b/cura_app.py @@ -22,9 +22,10 @@ if Platform.isLinux(): # Needed for platform.linux_distribution, which is not av if Platform.isWindows() and hasattr(sys, "frozen"): try: del os.environ["PYTHONPATH"] - except KeyError: pass + except KeyError: + pass -#WORKAROUND: GITHUB-704 GITHUB-708 +# WORKAROUND: GITHUB-704 GITHUB-708 # It looks like setuptools creates a .pth file in # the default /usr/lib which causes the default site-packages # to be inserted into sys.path before PYTHONPATH. @@ -45,6 +46,7 @@ def exceptHook(hook_type, value, traceback): _crash_handler = CrashHandler(hook_type, value, traceback) _crash_handler.show() + sys.excepthook = exceptHook # Workaround for a race condition on certain systems where there @@ -75,7 +77,7 @@ faulthandler.enable() # Force an instance of CuraContainerRegistry to be created and reused later. cura.Settings.CuraContainerRegistry.CuraContainerRegistry.getInstance() -# This prestart up check is needed to determine if we should start the application at all. +# This pre-start up check is needed to determine if we should start the application at all. if not cura.CuraApplication.CuraApplication.preStartUp(): sys.exit(0) |