blob: d4f2d70c39f2809ad8cf65778660b46495b401cc [file] [log] [blame]
Jack Jansen6573f312002-08-05 14:56:04 +00001#
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.
6#
7
8import sys, os
9
10Error = "bgenlocations.Error"
11#
12# Where bgen is. For unix-Python bgen isn't installed, so you have to refer to
13# the source tree here.
Jack Jansen10d176f2003-11-19 16:12:08 +000014BGENDIR="/Users/jack/src/python/Tools/bgen/bgen"
Jack Jansen6573f312002-08-05 14:56:04 +000015
16#
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.
21#
Jack Jansen10d176f2003-11-19 16:12:08 +000022INCLUDEDIR="/Users/jack/src/Universal/Interfaces/CIncludes"
Jack Jansen6573f312002-08-05 14:56:04 +000023
24#
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.
28#
Jack Jansen10d176f2003-11-19 16:12:08 +000029TOOLBOXDIR="/Users/jack/src/python/Lib/plat-mac/Carbon"
Jack Jansen6573f312002-08-05 14:56:04 +000030
31# Creator for C files:
32CREATOR="CWIE"
33
34if not os.path.exists(BGENDIR):
Jack Jansen0ae32202003-04-09 13:25:43 +000035 raise Error, "Please fix bgenlocations.py, BGENDIR does not exist: %s" % BGENDIR
Jack Jansen6573f312002-08-05 14:56:04 +000036if not os.path.exists(INCLUDEDIR):
Jack Jansen0ae32202003-04-09 13:25:43 +000037 raise Error, "Please fix bgenlocations.py, INCLUDEDIR does not exist: %s" % INCLUDEDIR
Jack Jansen6573f312002-08-05 14:56:04 +000038if not os.path.exists(TOOLBOXDIR):
Jack Jansen0ae32202003-04-09 13:25:43 +000039 raise Error, "Please fix bgenlocations.py, TOOLBOXDIR does not exist: %s" % TOOLBOXDIR
40
Jack Jansen6573f312002-08-05 14:56:04 +000041# Sigh, due to the way these are used make sure they end with : or /.
42if BGENDIR[-1] != os.sep:
Jack Jansen0ae32202003-04-09 13:25:43 +000043 BGENDIR = BGENDIR + os.sep
Jack Jansen6573f312002-08-05 14:56:04 +000044if INCLUDEDIR[-1] != os.sep:
Jack Jansen0ae32202003-04-09 13:25:43 +000045 INCLUDEDIR = INCLUDEDIR + os.sep
Jack Jansen6573f312002-08-05 14:56:04 +000046if TOOLBOXDIR[-1] != os.sep:
Jack Jansen0ae32202003-04-09 13:25:43 +000047 TOOLBOXDIR = TOOLBOXDIR + os.sep
48