Skip to content

Commit

Permalink
Merge pull request #5109 from NREL/5108-quote_ExpandObjects
Browse files Browse the repository at this point in the history
Fix #5108 - quote call to ExpandObjects for paths with spaces
  • Loading branch information
jmarrec committed Mar 13, 2024
2 parents c48911e + 156fc09 commit 171ca2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workflow/RunEnergyPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void OSWorkflow::runEnergyPlus() {
// TODO: workflow-gem was manually running expandObjects prior to the potential serialization to json
// Should we rather pass -x to the E+ cmd line?
if (!workflowJSON.runOptions()->skipExpandObjects()) {
const std::string cmd = openstudio::toString(runDirResults.expandObjectsExe.native());
const std::string cmd = fmt::format("\"{}\"", openstudio::toString(runDirResults.expandObjectsExe.native()));
LOG(Info, "Running command '" << cmd << "'");

int result = 0;
Expand Down

0 comments on commit 171ca2b

Please sign in to comment.