Skip to content

Commit

Permalink
Merge pull request #110 from watts-dev/Dakota_fix
Browse files Browse the repository at this point in the history
Update plugin_dakota.py
  • Loading branch information
paulromano authored Aug 24, 2023
2 parents e23eefe + 9067abb commit 02419f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Fixed

* Fixed path to system python executable in dakota plugin
* Fixed path for templates rendered from the `extra_template_inputs` argument in
`PluginGeneric` and subclasses
([#109](https://github.com/watts-dev/watts/pull/109))
Expand Down
3 changes: 2 additions & 1 deletion src/watts/plugin_dakota.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import csv
import json
import sys
import os
from pathlib import Path
import pickle
Expand Down Expand Up @@ -215,7 +216,7 @@ def _run_coupled_code(coupled_code_exec: str) -> dict:
if not os.path.exists(coupled_code_exec):
raise FileNotFoundError("Coupled-code script missing.")

subprocess.check_output(["python", coupled_code_exec])
subprocess.check_output([sys.executable, coupled_code_exec])

# Read the 'opt_res.out' pickle file and
# store the results to 'res_output' for data
Expand Down

0 comments on commit 02419f1

Please sign in to comment.