This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients Big Stone, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-02-16.09:46:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487238410.06.0.70238002713.issue29578@psf.upfronthosting.co.za>
In-reply-to
Content
No (see the doc link I referenced) - paths are absolute, or relative to the _pth file. So "." means "in the same place as the pth file".

I don't think there's a way with _pth files to get the "add the location of the executed script to the front of sys.path" behaviour. It's not really a good idea for an embedded interpreter (which is the _pth file intended use case) as it makes it a bit too easy to run code from unexpected locations.

In an embedded application, you could of course add sys.path entries in your C code. Maybe WinPython could do that too?
History
Date User Action Args
2017-02-16 09:46:50paul.mooresetrecipients: + paul.moore, tim.golden, zach.ware, steve.dower, Big Stone
2017-02-16 09:46:50paul.mooresetmessageid: <1487238410.06.0.70238002713.issue29578@psf.upfronthosting.co.za>
2017-02-16 09:46:50paul.moorelinkissue29578 messages
2017-02-16 09:46:49paul.moorecreate