small fix: don't depend on the exact location of PythonCGISlave within the Python tree. (jvr)

This commit is contained in:
Just van Rossum 2000-03-28 14:53:32 +00:00
parent f51872733c
commit c88093a90f

View file

@ -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:]: