Enable building of Carbon toolbox modules with unix-Python.

This commit is contained in:
Jack Jansen 2002-08-05 15:39:30 +00:00
parent ff8dec7427
commit aaebdd6a02
26 changed files with 26 additions and 58 deletions

View File

@ -7,9 +7,8 @@ import os
import string
import MacOS
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Appearance"
SHORT = "app"

View File

@ -6,11 +6,9 @@ import string
import MacOS
import sys
BGENDIR= os.path.join(sys.prefix, ':Tools:bgen:bgen:')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner, Scanner_OSX
def main():

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
from bgenlocations import TOOLBOXDIR
LONG = "CoreFoundation"
SHORT = "cf"

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
from bgenlocations import TOOLBOXDIR
LONG = "CoreGraphics"
SHORT = "cg"

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Components"
SHORT = "cm"

View File

@ -1,11 +1,10 @@
# Scan <Controls.h>, generating ctlgen.py.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
def main():
# input = "Controls.h" # Universal Headers < 3.3

View File

@ -2,11 +2,10 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Dialogs"
SHORT = "dlg"

View File

@ -1,11 +1,10 @@
# Scan <Drag.h>, generating draggen.py.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR, INCLUDEDIR
MISSING_DEFINES="""
kDragHasLeftSenderWindow = (1 << 0)

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Events"
SHORT = "evt"

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Fonts"
SHORT = "fm"

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Balloons"
SHORT = "help"

View File

@ -2,11 +2,10 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "HtmlRendering"
SHORT = "html"

View File

@ -3,12 +3,9 @@
import sys
import os
import string
import MacOS
BGENDIR= '/Users/jack/src/python/Tools/bgen/bgen'
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
print sys.path, sys.prefix
from bgenlocations import TOOLBOXDIR
from scantools import Scanner_OSX

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Icons"
SHORT = "icn"

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Lists"
SHORT = "list"

View File

@ -1,11 +1,10 @@
# Scan <Menus.h>, generating menugen.py.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
def main():
input = "Menus.h"

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
from bgenlocations import TOOLBOXDIR
LONG = "MacTextEditor"
SHORT = "mlte"

View File

@ -2,11 +2,10 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
def main():
input = "QuickDraw.h"

View File

@ -1,9 +1,8 @@
# Scan an Apple header file, generating a Python file of generator calls.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "QuickTime"
SHORT = "qt"

View File

@ -7,9 +7,8 @@ import os
import string
import MacOS
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner

View File

@ -5,13 +5,9 @@
import sys
import os
if os.sep == ':':
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
else:
BGENDIR="../../../Tools/bgen/bgen"
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "Scrap"
SHORT = "scrap"

View File

@ -4,9 +4,8 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner

View File

@ -2,10 +2,9 @@
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
LONG = "TextEdit"
SHORT = "te"

View File

@ -1,9 +1,8 @@
# Scan an Apple header file, generating a Python file of generator calls.
import sys
import os
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner