From c88093a90f8f5f979d291a282cfdd555c7a784b6 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Tue, 28 Mar 2000 14:53:32 +0000 Subject: small fix: don't depend on the exact location of PythonCGISlave within the Python tree. (jvr) --- Mac/Tools/CGI/BuildCGIApplet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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:]: -- cgit v0.12