Skip to content

Commit

Permalink
Update plugin_dakota.py
Browse files Browse the repository at this point in the history
Update with fix to plugin-dakota executable
  • Loading branch information
nstauff authored Aug 24, 2023
1 parent e23eefe commit 09e11fb
Showing 1 changed file with 2 additions and 1 deletion.
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 09e11fb

Please sign in to comment.