[Pythonmac-SIG] Using .pth to adjust Python on startup

Robert White kranki at mac.com
Fri Jan 14 19:29:56 CET 2005


Last night, while researching a different problem, I ran across the 
usage of 'import' within ".pth" to run arbitrary code as the Python 
environment is being initialized.  I believe that this provides an 
alternative to using PYTHONPATH and possibly some of the other 
environment variables via  "~/.MacOSX/environment.plist".  Is this 
correct?  If so, I will document it as such in the wiki.  Thanks for 
your help.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 462 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050114/6a363a0e/attachment.bin


More information about the Pythonmac-SIG mailing list