forked from qt-creator/qt-creator
Debugger: Set "PYTHONHOME" for Androids lldb as native path
The correct path separators in this case make the difference beween breaking on a breakpoint or not. Change-Id: Ia33682e559ffe172a571bec6b78b32fca14d98f5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -273,7 +273,7 @@ bool DebuggerItem::addAndroidLldbPythonEnv(const Utils::FilePath &lldbCmd, Utils
|
||||
const FilePath pythonBinDir =
|
||||
HostOsInfo::isAnyUnixHost() ? pythonDir.pathAppended("bin") : pythonDir;
|
||||
if (pythonBinDir.exists()) {
|
||||
env.set("PYTHONHOME", pythonDir.path());
|
||||
env.set("PYTHONHOME", pythonDir.toUserOutput());
|
||||
env.prependOrSetPath(pythonBinDir.path());
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user