forked from qt-creator/qt-creator
Python: make sure working dir is on python device
Task-number: QTCREATORBUG-27536 Change-Id: If9c8f88f2a871ec71b200020689a4ae9df1e8a6a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -198,6 +198,10 @@ PythonRunConfiguration::PythonRunConfiguration(Target *target, Id id)
|
|||||||
connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update);
|
connect(target, &Target::buildSystemUpdated, this, &RunConfiguration::update);
|
||||||
connect(target, &Target::buildSystemUpdated, this, &PythonRunConfiguration::updateExtraCompilers);
|
connect(target, &Target::buildSystemUpdated, this, &PythonRunConfiguration::updateExtraCompilers);
|
||||||
currentInterpreterChanged();
|
currentInterpreterChanged();
|
||||||
|
|
||||||
|
setRunnableModifier([](Runnable &r) {
|
||||||
|
r.workingDirectory = r.workingDirectory.onDevice(r.command.executable());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
PythonRunConfiguration::~PythonRunConfiguration()
|
PythonRunConfiguration::~PythonRunConfiguration()
|
||||||
|
Reference in New Issue
Block a user