mirror of
https://github.com/python/cpython.git
synced 2025-08-17 23:31:09 +00:00
Fix for issue8868: without this patch 'MacOS.WMAvailable()' will return
False on MacOSX 10.5 or earlier and scripts won't be able to access GUI functionality.
This commit is contained in:
parent
98bc31f5e0
commit
27c72e9e5c
2 changed files with 11 additions and 0 deletions
|
@ -149,6 +149,14 @@ int
|
|||
main(int argc, char **argv) {
|
||||
char* exec_path = get_python_path();
|
||||
|
||||
/*
|
||||
* Let argv[0] refer to the new interpreter. This is needed to
|
||||
* get the effect we want on OSX 10.5 or earlier. That is, without
|
||||
* changing argv[0] the real interpreter won't have access to
|
||||
* the Window Server.
|
||||
*/
|
||||
argv[0] = exec_path;
|
||||
|
||||
#ifdef HAVE_SPAWN_H
|
||||
|
||||
/* We're weak-linking to posix-spawnv to ensure that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue