summaryrefslogtreecommitdiffstats
path: root/Mac/Contrib/PythonScript
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-25 12:15:04 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-25 12:15:04 (GMT)
commit5a6fdcd3718927109592c6df692fe24a8fdaee31 (patch)
tree3816c4cbfcf1533dee55a48a8eec2c3557ae44cc /Mac/Contrib/PythonScript
parent6dba6bc0a226c2dd384d9311b9ad842be653c2b5 (diff)
downloadcpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.zip
cpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.tar.gz
cpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.tar.bz2
Import the MacOS toolbox modules from the Carbon package.
Diffstat (limited to 'Mac/Contrib/PythonScript')
-rw-r--r--Mac/Contrib/PythonScript/PythonScript.py2
-rw-r--r--Mac/Contrib/PythonScript/baepack.py6
-rw-r--r--Mac/Contrib/PythonScript/baetools.py4
-rw-r--r--Mac/Contrib/PythonScript/baetypes.py2
-rw-r--r--Mac/Contrib/PythonScript/getaete.py2
-rw-r--r--Mac/Contrib/PythonScript/printaete.py2
6 files changed, 9 insertions, 9 deletions
diff --git a/Mac/Contrib/PythonScript/PythonScript.py b/Mac/Contrib/PythonScript/PythonScript.py
index b6077ae..731db98 100644
--- a/Mac/Contrib/PythonScript/PythonScript.py
+++ b/Mac/Contrib/PythonScript/PythonScript.py
@@ -10,7 +10,7 @@ import sys
import getaete
import baetools
import baetypes
-import AE
+from Carbon import AE
import AppleEvents
import macfs
from types import *
diff --git a/Mac/Contrib/PythonScript/baepack.py b/Mac/Contrib/PythonScript/baepack.py
index 26267ac..39e064b 100644
--- a/Mac/Contrib/PythonScript/baepack.py
+++ b/Mac/Contrib/PythonScript/baepack.py
@@ -17,8 +17,8 @@ import string
import types
from string import strip
from types import *
-import AE
-from AppleEvents import *
+from Carbon import AE
+from Carbon.AppleEvents import *
import MacOS
import macfs
import StringIO
@@ -195,7 +195,7 @@ def unpack(desc):
v = 0x100000000L + v
return v
if t == typeObjectSpecifier:
- import Res
+ from Carbon import Res
# print desc, type(desc)
# print desc.__members__
# print desc.data, desc.type
diff --git a/Mac/Contrib/PythonScript/baetools.py b/Mac/Contrib/PythonScript/baetools.py
index 8f0bb04..acc00a6 100644
--- a/Mac/Contrib/PythonScript/baetools.py
+++ b/Mac/Contrib/PythonScript/baetools.py
@@ -21,8 +21,8 @@ files: the pack stuff from aepack, the objects from aetypes.
"""
from types import *
-import AE
-import AppleEvents
+from Carbon import AE
+from Carbon import AppleEvents
import MacOS
import sys
diff --git a/Mac/Contrib/PythonScript/baetypes.py b/Mac/Contrib/PythonScript/baetypes.py
index 1d8266d..9b50e78 100644
--- a/Mac/Contrib/PythonScript/baetypes.py
+++ b/Mac/Contrib/PythonScript/baetypes.py
@@ -1,6 +1,6 @@
"""aetypes - Python objects representing various AE types."""
-from AppleEvents import *
+from Carbon.AppleEvents import *
import struct
from types import *
import string
diff --git a/Mac/Contrib/PythonScript/getaete.py b/Mac/Contrib/PythonScript/getaete.py
index 14beb32..ba22c9d 100644
--- a/Mac/Contrib/PythonScript/getaete.py
+++ b/Mac/Contrib/PythonScript/getaete.py
@@ -18,7 +18,7 @@ import types
from MACFS import *
import macfs
import string
-from Res import *
+from Carbon.Res import *
import struct
# for testing only
diff --git a/Mac/Contrib/PythonScript/printaete.py b/Mac/Contrib/PythonScript/printaete.py
index a7fe8e0..b105d8a 100644
--- a/Mac/Contrib/PythonScript/printaete.py
+++ b/Mac/Contrib/PythonScript/printaete.py
@@ -14,7 +14,7 @@ import types
import macfs
import string
import macpath
-from Res import *
+from Carbon.Res import *
# for testing only
app = 'MACS'#CSOm'#'nwSP'#'ezVu'#