Re: when may sys.executable be empty

2015-03-12 Thread Robin Becker
On 11/03/2015 18:15, Dave Angel wrote: . Just speculating, but how about when the main executable is not python at all, but it uses a DLL or .so file with Python interpreter. when I run a django wsgi.py using uwsgi sys.executable points at the uwsgi executable. To run subprocess etc I

Re: when may sys.executable be empty

2015-03-12 Thread Terry Reedy
On 3/11/2015 10:41 AM, Wolfgang Maier wrote: From the documentation of sys.executable: A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable w

Re: when may sys.executable be empty

2015-03-11 Thread Dave Angel
On 03/11/2015 10:41 AM, Wolfgang Maier wrote: From the documentation of sys.executable: A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable

Re: when may sys.executable be empty

2015-03-11 Thread YBM
Le 11/03/2015 15:41, Wolfgang Maier a écrit : From the documentation of sys.executable: A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable

when may sys.executable be empty

2015-03-11 Thread Wolfgang Maier
From the documentation of sys.executable: A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable will be an empty string or None. So on which