Its right now.
[python.git] / Lib / plat-mac / bgenlocations.py
blobe7fa354075318a0d933dcfd63091d532b2c0c880
2 # Local customizations for generating the Carbon interface modules.
3 # Edit this file to reflect where things should be on your system.
4 # Note that pathnames are unix-style for OSX MachoPython/unix-Python,
5 # but mac-style for MacPython, whether running on OS9 or OSX.
8 import sys, os
10 Error = "bgenlocations.Error"
12 # Where bgen is. For unix-Python bgen isn't installed, so you have to refer to
13 # the source tree here.
14 BGENDIR="/Users/jack/src/python/Tools/bgen/bgen"
17 # Where to find the Universal Header include files. If you have CodeWarrior
18 # installed you can use the Universal Headers from there, otherwise you can
19 # download them from the Apple website. Bgen can handle both unix- and mac-style
20 # end of lines, so don't worry about that.
22 INCLUDEDIR="/Users/jack/src/Universal/Interfaces/CIncludes"
25 # Where to put the python definitions files. Note that, on unix-Python,
26 # if you want to commit your changes to the CVS repository this should refer to
27 # your source directory, not your installed directory.
29 TOOLBOXDIR="/Users/jack/src/python/Lib/plat-mac/Carbon"
31 # Creator for C files:
32 CREATOR="CWIE"
34 # The previous definitions can be overriden by creating a module
35 # bgenlocationscustomize.py and putting it in site-packages (or anywere else
36 # on sys.path, actually)
37 try:
38 from bgenlocationscustomize import *
39 except ImportError:
40 pass
42 if not os.path.exists(BGENDIR):
43 raise Error, "Please fix bgenlocations.py, BGENDIR does not exist: %s" % BGENDIR
44 if not os.path.exists(INCLUDEDIR):
45 raise Error, "Please fix bgenlocations.py, INCLUDEDIR does not exist: %s" % INCLUDEDIR
46 if not os.path.exists(TOOLBOXDIR):
47 raise Error, "Please fix bgenlocations.py, TOOLBOXDIR does not exist: %s" % TOOLBOXDIR
49 # Sigh, due to the way these are used make sure they end with : or /.
50 if BGENDIR[-1] != os.sep:
51 BGENDIR = BGENDIR + os.sep
52 if INCLUDEDIR[-1] != os.sep:
53 INCLUDEDIR = INCLUDEDIR + os.sep
54 if TOOLBOXDIR[-1] != os.sep:
55 TOOLBOXDIR = TOOLBOXDIR + os.sep