mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user