Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2022-01-11 16:12:04 +0300
committerGhostkeeper <rubend@tutanota.com>2022-01-11 16:12:04 +0300
commit66648ca6114630e278001e7fbbf5bccd2c049615 (patch)
treeaba2919389c69b3b9c51f51f876656171ba3cbad /cura_app.py
parentf3c3f3187eafa16800459659b00d2cef7c61cd1b (diff)
parent020b8f7510152efb7bf23836310232c0ab72eed3 (diff)
Merge branch '4.13'
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cura_app.py b/cura_app.py
index b9a42f0aba..1520d2da67 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-# Copyright (c) 2020 Ultimaker B.V.
+# Copyright (c) 2022 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
# Remove the working directory from sys.path.
@@ -15,6 +15,9 @@ if "" in sys.path:
import argparse
import faulthandler
import os
+if sys.platform != "linux": # Turns out the Linux build _does_ use this, but we're not making an Enterprise release for that system anyway.
+ os.environ["QT_PLUGIN_PATH"] = "" # Security workaround: Don't need it, and introduces an attack vector, so set to nul.
+ os.environ["QML2_IMPORT_PATH"] = "" # Security workaround: Don't need it, and introduces an attack vector, so set to nul.
from PyQt5.QtNetwork import QSslConfiguration, QSslSocket