0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 08:20:55 +01:00

Allow overriding of bgen pathnames in an optional module bgenlocationcustomize.

Editing of bgenlocations.py isn't easy if your Python was supplied by Apple.
This commit is contained in:
Jack Jansen 2004-07-15 15:06:07 +00:00
parent ce17cf6da7
commit 95b66f3276

View File

@ -31,6 +31,14 @@ TOOLBOXDIR="/Users/jack/src/python/Lib/plat-mac/Carbon"
# Creator for C files:
CREATOR="CWIE"
# The previous definitions can be overriden by creating a module
# bgenlocationscustomize.py and putting it in site-packages (or anywere else
# on sys.path, actually)
try:
from bgenlocationscustomize import *
except ImportError:
pass
if not os.path.exists(BGENDIR):
raise Error, "Please fix bgenlocations.py, BGENDIR does not exist: %s" % BGENDIR
if not os.path.exists(INCLUDEDIR):