On 16/08/15 20:46, Alex Kleider wrote:
Where/how is the best place/way to set PYTHONPATH? I've never been clear to me if it's part of the shell (bash) environment or part of the python interpreter's environment.
The environment is user specific, so whichever shell the user has (zsh, tcsh, bash etc) sets the environment. When you launch a command that environment is inherited by the command, so the Python interpreter inherits the user environment from which it is launched. This can be a cause of obscure bugs when one user has a different environment to another (eg the developer!) Usually there is a global environment set up in the /etc versions of the shell but a user can overwrite those settings. HTH -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor