Skip to content

Commit

Permalink
fix #16075
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 23, 2025
1 parent d4b31ae commit daf6c64
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/netedit/tools/GNEPythonTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,7 @@ GNEPythonTool::loadConfiguration(const std::string& file) {

void
GNEPythonTool::saveConfiguration(const std::string& file) const {
std::string command = getCommandPath() + " -C \"" + file + "\" ";
// add arguments
for (const auto& option : myPythonToolsOptions) {
// only write modified values
if (!option.second->isDefault()) {
if (option.second->isBool()) {
command += ("--" + option.first + " ");
} else {
command += ("--" + option.first + " \"" + StringUtils::escapeShell(option.second->getValueString()) + "\" ");
}
}
}
std::string command = getCommand() + " -C \"" + file + "\" ";
// start in background
#ifndef WIN32
command = command + " &";
Expand Down

0 comments on commit daf6c64

Please sign in to comment.