]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Ensure that sys.prefix can reliably be found
authorRonald Oussoren <ronaldoussoren@mac.com>
Fri, 23 Jul 2010 16:05:35 +0000 (16:05 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Fri, 23 Jul 2010 16:05:35 +0000 (16:05 +0000)
commit97d1119ddeb60e70c6a4be2080f6b71ca2004f72
tree49a493b50767533f68fe25f4f1a824dbe287ca2b
parent3f5f226ba0dab128f6a1b7ae534b1c29eb5db0e9
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
Modules/getpath.c