[Tutor] HOWTO: adding to sys.path the simplest way.

Tim Johnson tim at johnsons-web.com
Fri Aug 24 17:35:46 CEST 2007


On Friday 24 August 2007, Tim Johnson wrote:
> On Thursday 23 August 2007, Kent Johnson wrote:
> > > I would welcome some opinions on this matter.
> >
> > Make a file called mylibraries.pth with contents
> > /path/to/mylibraries
>
>  Aha! User-defined .pth file is recognized by python
>
> > Put the file in your site-packages folder (I don't know wherethat is for
> > you).
>
>   On *nix systems, I think it is generally
>    var/lib/python<version number>/site-packages
  Oops! Meant to say /usr/lib/python<version numbe>...
  sorry.
tim




More information about the Tutor mailing list