PTH files: Abs paths not working as expected. Symlinks needed?

gst g.starck at gmail.com
Wed Feb 15 13:05:50 EST 2017


Le mercredi 15 février 2017 10:34:42 UTC-5, Steve D'Aprano a écrit :
> On Wed, 15 Feb 2017 11:42 pm, poseidon wrote:
> 
> > Yes, removed it (symlink still there) and it still works. But then, what
> > are pth files for? 
> 
> 
> Good question. I don't actually know anyone that uses pth files, so perhaps
> they're unnecessary.
> 

when used with the "import " mechanism they can be used as a startup hook for instance, which can be pretty useful.



More information about the Python-list mailing list