Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aaebdd6

Browse files
committed
Enable building of Carbon toolbox modules with unix-Python.
1 parent ff8dec7 commit aaebdd6

26 files changed

Lines changed: 26 additions & 58 deletions

File tree

Mac/Modules/ae/aescan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
import string
88
import MacOS
99

10-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
10+
from bgenlocations import TOOLBOXDIR, BGENDIR
1111
sys.path.append(BGENDIR)
12-
from bgenlocations import TOOLBOXDIR
1312

1413
from scantools import Scanner
1514

Mac/Modules/app/appscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import sys
44
import os
5-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
5+
from bgenlocations import TOOLBOXDIR, BGENDIR
66
sys.path.append(BGENDIR)
77
from scantools import Scanner
8-
from bgenlocations import TOOLBOXDIR
98

109
LONG = "Appearance"
1110
SHORT = "app"

Mac/Modules/carbonevt/CarbonEvtscan.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
import MacOS
77
import sys
88

9-
BGENDIR= os.path.join(sys.prefix, ':Tools:bgen:bgen:')
9+
from bgenlocations import TOOLBOXDIR, BGENDIR
1010
sys.path.append(BGENDIR)
1111

12-
from bgenlocations import TOOLBOXDIR
13-
1412
from scantools import Scanner, Scanner_OSX
1513

1614
def main():

Mac/Modules/cf/cfscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import sys
44
import os
5-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
5+
from bgenlocations import TOOLBOXDIR, BGENDIR
66
sys.path.append(BGENDIR)
77
from scantools import Scanner_OSX
8-
from bgenlocations import TOOLBOXDIR
98

109
LONG = "CoreFoundation"
1110
SHORT = "cf"

Mac/Modules/cg/cgscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import sys
44
import os
5-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
5+
from bgenlocations import TOOLBOXDIR, BGENDIR
66
sys.path.append(BGENDIR)
77
from scantools import Scanner_OSX
8-
from bgenlocations import TOOLBOXDIR
98

109
LONG = "CoreGraphics"
1110
SHORT = "cg"

Mac/Modules/cm/cmscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import sys
44
import os
5-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
5+
from bgenlocations import TOOLBOXDIR, BGENDIR
66
sys.path.append(BGENDIR)
77
from scantools import Scanner
8-
from bgenlocations import TOOLBOXDIR
98

109
LONG = "Components"
1110
SHORT = "cm"

Mac/Modules/ctl/ctlscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Scan <Controls.h>, generating ctlgen.py.
22
import sys
33
import os
4-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
4+
from bgenlocations import TOOLBOXDIR, BGENDIR
55
sys.path.append(BGENDIR)
66

77
from scantools import Scanner
8-
from bgenlocations import TOOLBOXDIR
98

109
def main():
1110
# input = "Controls.h" # Universal Headers < 3.3

Mac/Modules/dlg/dlgscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
import sys
44
import os
5-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
5+
from bgenlocations import TOOLBOXDIR, BGENDIR
66
sys.path.append(BGENDIR)
77

88
from scantools import Scanner
9-
from bgenlocations import TOOLBOXDIR
109

1110
LONG = "Dialogs"
1211
SHORT = "dlg"

Mac/Modules/drag/dragscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Scan <Drag.h>, generating draggen.py.
22
import sys
33
import os
4-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
4+
from bgenlocations import TOOLBOXDIR, BGENDIR
55
sys.path.append(BGENDIR)
66

77
from scantools import Scanner
8-
from bgenlocations import TOOLBOXDIR, INCLUDEDIR
98

109
MISSING_DEFINES="""
1110
kDragHasLeftSenderWindow = (1 << 0)

Mac/Modules/evt/evtscan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import sys
44
import os
5-
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
5+
from bgenlocations import TOOLBOXDIR, BGENDIR
66
sys.path.append(BGENDIR)
77
from scantools import Scanner
8-
from bgenlocations import TOOLBOXDIR
98

109
LONG = "Events"
1110
SHORT = "evt"

0 commit comments

Comments
 (0)