forked from qt-creator/qt-creator
ProjectExplorer: always map working directory path to command device
Change-Id: I0d2d54df118b70c2874b77b4ec2792fb8e114416 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -400,7 +400,7 @@ Runnable RunConfiguration::runnable() const
|
||||
Runnable r;
|
||||
r.command = commandLine();
|
||||
if (auto workingDirectoryAspect = aspect<WorkingDirectoryAspect>())
|
||||
r.workingDirectory = r.command.executable().withNewPath(workingDirectoryAspect->workingDirectory().path());
|
||||
r.workingDirectory = r.command.executable().withNewMappedPath(workingDirectoryAspect->workingDirectory());
|
||||
if (auto environmentAspect = aspect<EnvironmentAspect>())
|
||||
r.environment = environmentAspect->environment();
|
||||
if (m_runnableModifier)
|
||||
|
@@ -226,10 +226,6 @@ PythonRunConfiguration::PythonRunConfiguration(Target *target, Id id)
|
||||
connect(target, &Target::buildSystemUpdated, this, [this]() { d->updateExtraCompilers(); });
|
||||
currentInterpreterChanged();
|
||||
|
||||
setRunnableModifier([](Runnable &r) {
|
||||
r.workingDirectory = r.command.executable().withNewMappedPath(r.workingDirectory); // FIXME: Needed?
|
||||
});
|
||||
|
||||
connect(PySideInstaller::instance(), &PySideInstaller::pySideInstalled, this,
|
||||
[this](const FilePath &python) {
|
||||
if (python == aspect<InterpreterAspect>()->currentInterpreter().command)
|
||||
|
Reference in New Issue
Block a user