First time here? Check out the Help page!
1 | initial version |
The OpenStudio CLI should work the same if called from Ruby, Python, batch file, or any other language. It was designed exactly for that purpose! I would second David's input that the issue is likely in how the command is formatted or interpreted by the call to subprocess.run. You might try putting in absolute paths to both the OpenStudio CLI and the OSW file. One possibility is that you have a different environment (e.g. environment variables) in your Ruby program than in your Python program, if this environment is used to launch the command then you could see issues (e.g. if PATH does not include OpenStudio CLI or if you have GEM_PATH set in Ruby but not Python).
Can you post more details about the errors you see if you continue to have issues?