diff options
author | Ghostkeeper <rubend@tutanota.com> | 2022-01-11 12:40:54 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2022-01-11 12:40:54 +0300 |
commit | 8c7f0d2c2db54f574a65f7dccaac872b5d07e472 (patch) | |
tree | 407c45228024a1e8bd7117fde8aa7f16a7d86eef | |
parent | b804d08be4ebb8dc4a46657fb9c621b336d1aa0b (diff) | |
parent | 8b7403c2f67a8ec3f0411f7ad545fd6e9cd75560 (diff) |
Merge branch 'CURA-8475_nil_qt_plugin_path' into 4.13
-rwxr-xr-x | cura_app.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cura_app.py b/cura_app.py index 57692ec0ae..03399b5614 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 |