summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>2000-03-28 14:53:32 (GMT)
committerJust van Rossum <just@lettererror.com>2000-03-28 14:53:32 (GMT)
commitc88093a90f8f5f979d291a282cfdd555c7a784b6 (patch)
treec2cc8ee5585030b6255548019ef1b1af3d1a5a73 /Mac
parentf51872733c81226cd2afc09cdce6db46d626e73b (diff)
downloadcpython-c88093a90f8f5f979d291a282cfdd555c7a784b6.zip
cpython-c88093a90f8f5f979d291a282cfdd555c7a784b6.tar.gz
cpython-c88093a90f8f5f979d291a282cfdd555c7a784b6.tar.bz2
small fix: don't depend on the exact location of PythonCGISlave within the Python tree. (jvr)
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/CGI/BuildCGIApplet.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mac/Tools/CGI/BuildCGIApplet.py b/Mac/Tools/CGI/BuildCGIApplet.py
index 29783c2..8c9a633 100644
--- a/Mac/Tools/CGI/BuildCGIApplet.py
+++ b/Mac/Tools/CGI/BuildCGIApplet.py
@@ -30,7 +30,9 @@ def buildcgiapplet():
# (there's no point in proceeding if we can't find it)
template = buildtools.findtemplate()
- wrapper = os.path.join(sys.exec_prefix, ":Mac:Tools:CGI:PythonCGISlave.py")
+ wrapper = "PythonCGISlave.py"
+ if not os.path.exists("PythonCGISlave.py"):
+ wrapper = os.path.join(sys.exec_prefix, ":Mac:Tools:CGI", wrapper)
# Ask for source text if not specified in sys.argv[1:]
if not sys.argv[1:]: