From: Just van Rossum Date: Tue, 28 Mar 2000 14:53:32 +0000 (+0000) Subject: small fix: don't depend on the exact location of PythonCGISlave within the Python... X-Git-Tag: v1.6a1~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c88093a90f8f5f979d291a282cfdd555c7a784b6;p=python small fix: don't depend on the exact location of PythonCGISlave within the Python tree. (jvr) --- diff --git a/Mac/Tools/CGI/BuildCGIApplet.py b/Mac/Tools/CGI/BuildCGIApplet.py index 29783c2e48..8c9a633f1a 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:]: