Message287923
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? |
|
Date |
User |
Action |
Args |
2017-02-16 09:46:50 | paul.moore | set | recipients:
+ paul.moore, tim.golden, zach.ware, steve.dower, Big Stone |
2017-02-16 09:46:50 | paul.moore | set | messageid: <1487238410.06.0.70238002713.issue29578@psf.upfronthosting.co.za> |
2017-02-16 09:46:50 | paul.moore | link | issue29578 messages |
2017-02-16 09:46:49 | paul.moore | create | |
|