I have UniVerse 11.3.1, and have been taking advantage of Rocket's u2py
module to run python code. Overall, this has been great. When calling python code from PICK I usually do PyCallFunction
. However I have a number of scripts I run directly from the RUNPY
command in TCL.
In refactoring some of my directories I am moving away from having the PP
directory house my python code. I can call my scripts from a new directory, say PYSCRIPTS
, but it means if I have a bash or TCL script that calls RUNPY
I now have to explicitly call out which directory I call it from:
RUNPY PYSCRIPTS test.py
instead of RUNPY test.py
.
Is there a way to change the default directory that RUNPY
looks in? Is this related to PYTHONPATH configuration, or is this hard-coded in the UniVerse binary? A minor inconvenience, but I would rather handle the parent directory of these scripts via configuration vs hard-coding them.