I have a set of scripts, that are executed using a specific python installation (set with a first line #!). There are a few different python installations on the network, and different groups have their own set-ups and workflows. Some groups have instructed people to modify their PYTHONPATH in their shell logins, in order to run their tools. If someone has modified their PYTHONPATH, and it a directory in it contains versions of a package that is incompatible with a script of mine, is there a recommended way to either:
- ignore a user's PYTHONPATH env variable, or
- make sure a specific site-packages directory is searched first?
Basically, people have modified their PYTHONPATHs, and need also to run my scripts. I'd like to make them universally available on the system, without people having to mess with their set-ups.
Thanks for the help.