summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/CGI/BuildCGIApplet.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/CGI/BuildCGIApplet.py')
-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:]: