Paul Moore added the comment:

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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29578>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to