Replies: 1 comment
-
I've tried a few things with no success. Firstly I think Dakota may be recognizing the backslashes as escape characters. I believe you can at least fix that with replacing them all with forward slashes. After that, though, I have still had trouble in an example getting Dakota to recognize the whole quoted object as a single string still. I believe the standard would be to edit the windows user environment variable for PATH so that python could just be called directly. Is there a reason why you wouldn't be able to just do this instead? It makes things a lot cleaner and easier |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've got some optimization code in python that I'm developing and testing in Windows. My python path on Windows is C:\Program Files\Python312\python.exe and it's causing all sorts of problems with the analysis driver because of the space. The code will ultimately end up on a linux system and this won't be a problem, but I need it to work on Windows for testing.
I've tried enclosing the path in quotes:
analysis_driver = '"C:\Program Files\Python\Python312\python.exe" "C:\Users\REDACTED\git-local\optimizer\Optimizer.py" "C:\Users\REDACTED\git-local\optimizer\Example15.input_moga" parameters.in fom.txt'
and I still get:"C:\Program: Command not found.
Usually the quotes work with cmd, but not sure if I'm missing something with the dakota analysis_driver syntax?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions