I want to run python programs which are not in my working directory but in other working directories. Unfortunately, python searches only the home directory, setting PYTHONPATH e.g. in .bashrc or adding a .pth file to $HOME/.local/lib/python3.9/site-packages with the path to the working directory has no effect. I still have to explicitly specify the path to the location of the python file I want to execute.
How can I set a path to a python working directory so I can execute the files in that directory?