Skip to content

Commit

Permalink
Set psuade default location with shutil (#1133)
Browse files Browse the repository at this point in the history
* Set psuade default location with shutil

* Format with Black

---------

Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov>
  • Loading branch information
franflame and lbianchi-lbl authored Apr 11, 2023
1 parent f3ea25f commit 44801da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion foqus_lib/framework/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,10 @@ def __init__(self):
self.working_dir = ""
self.new_working_dir = ""
self.simsinter_path = "C:/Program Files (x86)/CCSI/SimSinter"
self.psuade_path = "C:/Program Files (x86)/psuade_project 1.7.5/bin/psuade.exe"
self.psuade_path = (
shutil.which("psuade")
or "C:/Program Files (x86)/psuade_project 1.7.5/bin/psuade.exe"
)
self.turbConfig = "turbine.cfg"
self.turbConfigCluster = "turbine_aws.cfg"
self.alamo_path = ""
Expand Down

0 comments on commit 44801da

Please sign in to comment.