Trim Python Home setting

If it contains blanks deployed Python detection fails,
lets make this a little more idiot-proof.
This commit is contained in:
Ale Martinez
2020-06-02 18:44:07 -03:00
parent a6ed25c7e4
commit 92f3a237be

View File

@@ -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;