Skip to content

Commit 7260abc

Browse files
Merged revisions 83098 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ................ r83098 | ronald.oussoren | 2010-07-23 17:12:28 +0100 (Fri, 23 Jul 2010) | 19 lines Merged revisions 83096 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83096 | ronald.oussoren | 2010-07-23 17:05:35 +0100 (Fri, 23 Jul 2010) | 13 lines Ensure that sys.prefix can reliably be found on OSX. This fixes a small issue that was exposed by running test_subprocess through regrtest (and hence in a subdirectory). Without this patch running python.exe from the build tree will fail when these tree conditions are true: 1) the CWD is not the root of build tree 2) python.exe is found through $PATH 3) the framework is not yet installed ........ ................
1 parent ac08e30 commit 7260abc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/getpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ calculate_path(void)
471471
if (!ismodule(argv0_path)) {
472472
/* We are in the build directory so use the name of the
473473
executable - we know that the absolute path is passed */
474-
strncpy(argv0_path, prog, MAXPATHLEN);
474+
strncpy(argv0_path, progpath, MAXPATHLEN);
475475
}
476476
else {
477477
/* Use the location of the library as the progpath */

0 commit comments

Comments
 (0)