Utilizing getOpenStudioCLI() call in python
Hi all,
I'm new to using the python package for openstudio 3.8 and am writing a very basic call to simulate my OSM file. As it stands, the important bit looks like this, where osw_path
is an OpenStudio::Path to the OSW file I'm trying to run.:
cli_path = openstudio.getOpenStudioCLI()
cmd = f'"{cli_path}" run -w "{osw_path}"
However, the openstudio.getOpenStudioCLI()
call is returning "."
rather than an openstudio.exe
file which makes me think there's something more to set up here. Perhaps there's a Python equivalent to how in Ruby you add an openstudio.rb
file to the {RUBY_VERSION}\lib\ruby\site_ruby
directory?
Any ideas for a best practice here rather than hard coding a path the to openstudio.exe
?
A colleague found this in the code base so perhaps it's not ready yet?
Do you have the location of openstudio.exe in your PATH?
Hey @ericringold -- I did not. I tried adding it (i.e.,C:\openstudio-3.8.0\bin\openstudio.exe) just to see and I still get the same result. A
WindowsPath
equal to.