ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-Tutor
python-Tutor
Re: [Tutor] Windows questions
by Jeff Shannon other posts by this author
Sep 2 2003 11:41PM messages near this date
Re: [Tutor] Windows questions | Re: [Tutor] Windows questions
Alan Gauld wrote:
> >The simplest way to do this is to include a file named python.pth in
> >your Python directory -- the filename itself doesn't matter, as long
> >as the extension is '.pth'.  Each line of this file should contain a
> >directory name; every directory that's specified in that file will
> >be added to your sys.path, and thus searched for modules.
>  
>  Ooh, thats the first time I've seen this. (Sorry if I just haven't
>  been
>  paying attention!) When did this get added to Python?
>  Has it always been there?

It's been there as long as I've been using Python -- since version 2.0 
at least.  At that point, $pythondir$\Lib\site-packages hadn't been 
established as the standard place to put third-party packages, so 
installation of things like PIL tended to require .pth files or the 
like to allow them to be found (PIL installed its own PIL.pth file, 
and probably many other packages did as well).  It's not so necessary 
any more, but still useful.

Jeff Shannon
Technician/Programmer
Credit International


_______________________________________________
Tutor maillist  -  Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Robin Hood
Alan Gauld
Jeff Shannon
Jeff Shannon

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved