aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-16 14:55:15 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-16 22:19:58 +0200
commit38814354ff6a30258b79947304fd3a6be4dc7089 (patch)
treea94cba7d57252deedcbc17d2fea3384f0a1c438f /examples
parent4134ffd908144a5cf7c84333d2b2726c86ac8762 (diff)
Fix running scriptableapplication in a virtualenv on Linux with Python 3.8
Remove the environment setting introduced by 435bc2744cd108efc1511bf17117bd4f0de15b43 for Linux. It is required for Windows only due to the changed library load policy. On Linux, it causes: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Task-number: PYSIDE-1236 Change-Id: I58e71f877b6cb754290a4d0ae41518255181fafc Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/scriptableapplication/pythonutils.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/scriptableapplication/pythonutils.cpp b/examples/scriptableapplication/pythonutils.cpp
index c5e18f256..d8c38026f 100644
--- a/examples/scriptableapplication/pythonutils.cpp
+++ b/examples/scriptableapplication/pythonutils.cpp
@@ -100,8 +100,6 @@ static void initVirtualEnvironment()
if (QOperatingSystemVersion::currentType() == QOperatingSystemVersion::Windows
&& (PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 8))) {
qputenv("PYTHONPATH", virtualEnvPath + "\\Lib\\site-packages");
- } else {
- qputenv("PYTHONHOME", virtualEnvPath);
}
}