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:
parent
ce17cf6da7
commit
95b66f3276
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user