]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
A hack to augment sys.path with the build/lib.<platform> directory
authorGuido van Rossum <guido@python.org>
Fri, 19 Jan 2001 21:54:59 +0000 (21:54 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 19 Jan 2001 21:54:59 +0000 (21:54 +0000)
commit48eb9cd62fefcf8cc93416512f15c913f55331bd
tree6ac6fae7b7d2070b06ebb1d67bd81c4491502b39
parent2cfa9806c7b4e21e44f00593ccbaeded703382de
A hack to augment sys.path with the build/lib.<platform> directory
created by Andrew's setup.py script, *if* we're actually running from
the build directory.  (The test for that: whether the sys.path[-1]
ends in "/Modules".)

This has one disadvantage: it imports a fair amount of code from the
distutils package, just in order to be able to calculate the correct
pathname.  See if I care. :-)
Lib/site.py