mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
This check-in fixes two problems:
1) A non-critical off-by-one error in pythonw 2) A problem in the configure script that caused builds with '--enable-framework --enable-universalsdk=/' to fail on OSX 10.6.
This commit is contained in:
parent
efc2f497fd
commit
7591285fc3
3 changed files with 74 additions and 99 deletions
|
@ -76,7 +76,7 @@ static char* get_python_path(void)
|
|||
end --;
|
||||
}
|
||||
end++;
|
||||
if (end[1] == '.') {
|
||||
if (*end == '.') {
|
||||
end++;
|
||||
}
|
||||
strcpy(end, "Resources/Python.app/Contents/MacOS/" PYTHONFRAMEWORK);
|
||||
|
@ -161,7 +161,7 @@ main(int argc, char **argv) {
|
|||
setup_spawnattr(&spawnattr);
|
||||
posix_spawn(NULL, exec_path, NULL,
|
||||
&spawnattr, argv, environ);
|
||||
err(1, "posix_spawn: %s", argv[0]);
|
||||
err(1, "posix_spawn: %s", exec_path);
|
||||
}
|
||||
#endif
|
||||
execve(exec_path, argv, environ);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue