From 92f3a237becbdc17bc83cb40c0f185482df2720e Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Tue, 2 Jun 2020 18:44:07 -0300 Subject: [PATCH] Trim Python Home setting If it contains blanks deployed Python detection fails, lets make this a little more idiot-proof. --- src/Python/PythonEmbed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/PythonEmbed.cpp b/src/Python/PythonEmbed.cpp index dcefd84cc..1c465e564 100644 --- a/src/Python/PythonEmbed.cpp +++ b/src/Python/PythonEmbed.cpp @@ -203,7 +203,7 @@ PythonEmbed::PythonEmbed(const bool verbose, const bool interactive) : verbose(v #endif // config, deployed or environment variable - QString PYTHONHOME = appsettings->value(NULL, GC_PYTHON_HOME, "").toString(); + QString PYTHONHOME = appsettings->value(NULL, GC_PYTHON_HOME, "").toString().trimmed(); if (PYTHONHOME == "") { if (pythonInstalled(pybin, pypath, deployedPython)) { PYTHONHOME = deployedPython;