Message98284
| 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:01 | admin | set | recipients: + ronaldoussoren, vstinner, schmir |
| 2010-03-11 14:56:00 | admin | link | issue7774 messages |
| 2010-03-11 13:50:33 | vstinner | unlink | issue7774 messages |
| 2010-01-25 13:06:04 | flox | set | recipients: + flox, pitrou, tarek, jnoller, ezio.melotti |
| 2010-01-25 13:06:04 | flox | set | messageid: <1264424764.68.0.913730662553.issue7774@psf.upfronthosting.co.za> |
| 2010-01-25 13:06:03 | flox | link | issue7774 messages |
| 2010-01-25 13:06:02 | flox | create | |