[Python-bugs-list] [ python-Bugs-424002 ] sys.executable not reliable
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 14 May 2001 11:17:23 -0700
Bugs item #424002, was updated on 2001-05-14 11:17
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424002&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Evan Simpson (evansimpson)
Assigned to: Nobody/Anonymous (nobody)
Summary: sys.executable not reliable
Initial Comment:
I created a file test.py containing:
#!/usr/local/bin/python2.1
import sys
print sys.executable
When I run it using the command
line "/usr/local/bin/python2.1 test.py", it prints the
full path to the executable. When I run it
from "/usr/local", using "bin/python2.1 test.py", then
I get "bin/python2.1". When I run it
using "./test.py", I get a blank string.
Under version 1.5.2, all of these yielded the full
path to the executable.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424002&group_id=5470