|
@@ -4,6 +4,7 @@
|
|
|
# Cura is released under the terms of the AGPLv3 or higher.
|
|
|
|
|
|
import sys
|
|
|
+import os
|
|
|
|
|
|
def exceptHook(type, value, traceback):
|
|
|
import cura.CrashHandler
|
|
@@ -11,6 +12,13 @@ def exceptHook(type, value, traceback):
|
|
|
|
|
|
sys.excepthook = exceptHook
|
|
|
|
|
|
+try:
|
|
|
+ from google.protobuf.pyext import _message
|
|
|
+except ImportError:
|
|
|
+ pass
|
|
|
+else:
|
|
|
+ os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "cpp"
|
|
|
+
|
|
|
import cura.CuraApplication
|
|
|
|
|
|
if sys.platform == "win32" and hasattr(sys, "frozen"):
|