summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/CGI
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/Tools/CGI
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/Tools/CGI')
-rw-r--r--Mac/Tools/CGI/BuildCGIApplet.py2
-rw-r--r--Mac/Tools/CGI/PythonCGISlave.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/Mac/Tools/CGI/BuildCGIApplet.py b/Mac/Tools/CGI/BuildCGIApplet.py
index c94eca9..93c3909 100644
--- a/Mac/Tools/CGI/BuildCGIApplet.py
+++ b/Mac/Tools/CGI/BuildCGIApplet.py
@@ -10,7 +10,7 @@ import sys
import os
import macfs
import MacOS
-import Res
+from Carbon import Res
import EasyDialogs
import buildtools
import py_resource
diff --git a/Mac/Tools/CGI/PythonCGISlave.py b/Mac/Tools/CGI/PythonCGISlave.py
index d2dd90f..f14a582 100644
--- a/Mac/Tools/CGI/PythonCGISlave.py
+++ b/Mac/Tools/CGI/PythonCGISlave.py
@@ -70,7 +70,8 @@ Content-type: text/html
def get_cgi_code():
# If we're a CGI wrapper, the CGI code resides in a PYC resource.
- import Res, marshal
+ from Carbon import Res
+ import marshal
try:
code = Res.GetNamedResource('PYC ', "CGI_MAIN")
except Res.Error: