You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python user scripts with interpreter shebang #!/usr/bin/env python3 are run using /bin/python3 during PBS run jobs. Currently the only way to run python scripts with the same python interpreter used to run payu, is to set user script to a non-executable python file without a header, and the script is run using sys.executable:
To run scripts with python executable that is used to run payu, one option could to modify environment variable $PATH on user script subprocess calls with the directory of sys.executable - the python executable used to run payu. An alternative could be to add the existing environment variable$PAYU_PATH to $PATH.
Would welcome any ideas as I am not really sure on the best way to go about this
The text was updated successfully, but these errors were encountered:
Python user scripts with interpreter shebang
#!/usr/bin/env python3
are run using/bin/python3
during PBS run jobs. Currently the only way to run python scripts with the same python interpreter used to run payu, is to set user script to a non-executable python file without a header, and the script is run usingsys.executable
:payu/payu/fsops.py
Line 32 in 6de3bb5
To run scripts with python executable that is used to run payu, one option could to modify environment variable
$PATH
on user script subprocess calls with the directory ofsys.executable
- the python executable used to run payu. An alternative could be to add the existing environment variable$PAYU_PATH
to$PATH
.Would welcome any ideas as I am not really sure on the best way to go about this
The text was updated successfully, but these errors were encountered: