when may sys.executable be empty
Dave Angel
davea at davea.name
Wed Mar 11 14:15:23 EDT 2015
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 will
> be an empty string or None.
>
> So on which systems does it not make sense ?
>
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.
--
DaveA
More information about the Python-list
mailing list