This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients ezio.melotti, flox, jnoller, pitrou, ronaldoussoren, schmir, tarek, vstinner
Date 2010-01-25.13:06:02
SpamBayes Score 0.017463664
Marked as misclassified No
Message-id <1264424764.68.0.913730662553.issue7774@psf.upfronthosting.co.za>
In-reply-to
Content
It may help to find other methods:
http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe


By the way, it should not "absolutize" the path when sys.executable is irrelevant. IMHO, it should render an empty thing in such case (code below).


--- Modules/getpath.c   (revision 77750)
+++ Modules/getpath.c   (working copy)
@@ -441,7 +441,7 @@
        }
        else
                progpath[0] = '\0';
-       if (progpath[0] != SEP)
+       if (progpath[0] != SEP && progpath[0] != '\0')
                absolutize(progpath);
        strncpy(argv0_path, progpath, MAXPATHLEN);
        argv0_path[MAXPATHLEN] = '\0';
History
Date User Action Args
2010-03-11 14:56:01adminsetrecipients: + ronaldoussoren, vstinner, schmir
2010-03-11 14:56:00adminlinkissue7774 messages
2010-03-11 13:50:33vstinnerunlinkissue7774 messages
2010-01-25 13:06:04floxsetrecipients: + flox, pitrou, tarek, jnoller, ezio.melotti
2010-01-25 13:06:04floxsetmessageid: <1264424764.68.0.913730662553.issue7774@psf.upfronthosting.co.za>
2010-01-25 13:06:03floxlinkissue7774 messages
2010-01-25 13:06:02floxcreate