Skip to content

Commit

Permalink
Enable building of Carbon toolbox modules with unix-Python.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjansen committed Aug 5, 2002
1 parent ff8dec7 commit aaebdd6
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 58 deletions.
3 changes: 1 addition & 2 deletions Mac/Modules/ae/aescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
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

Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/app/appscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions Mac/Modules/carbonevt/CarbonEvtscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
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():
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/cf/cfscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/cg/cgscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/cm/cmscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/ctl/ctlscan.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/dlg/dlgscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/drag/dragscan.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/evt/evtscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/fm/fmscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/help/helpscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/htmlrender/htmlscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 1 addition & 4 deletions Mac/Modules/ibcarbon/IBCarbonscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/icn/icnscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/list/listscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/menu/menuscan.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/mlte/mltescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/qd/qdscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/qdoffs/qdoffsscan.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/qt/qtscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/res/resscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
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

Expand Down
6 changes: 1 addition & 5 deletions Mac/Modules/scrap/scrapscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/snd/sndscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/te/tescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions Mac/Modules/win/winscan.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit aaebdd6

Please sign in to comment.