mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
small fix: don't depend on the exact location of PythonCGISlave within the Python tree. (jvr)
This commit is contained in:
parent
f51872733c
commit
c88093a90f
1 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,9 @@ def buildcgiapplet():
|
||||||
# (there's no point in proceeding if we can't find it)
|
# (there's no point in proceeding if we can't find it)
|
||||||
|
|
||||||
template = buildtools.findtemplate()
|
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:]
|
# Ask for source text if not specified in sys.argv[1:]
|
||||||
if not sys.argv[1:]:
|
if not sys.argv[1:]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue