Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c88093a

Browse files
author
Just van Rossum
committed
small fix: don't depend on the exact location of PythonCGISlave within the Python tree. (jvr)
1 parent f518727 commit c88093a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Mac/Tools/CGI/BuildCGIApplet.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def buildcgiapplet():
3030
# (there's no point in proceeding if we can't find it)
3131

3232
template = buildtools.findtemplate()
33-
wrapper = os.path.join(sys.exec_prefix, ":Mac:Tools:CGI:PythonCGISlave.py")
33+
wrapper = "PythonCGISlave.py"
34+
if not os.path.exists("PythonCGISlave.py"):
35+
wrapper = os.path.join(sys.exec_prefix, ":Mac:Tools:CGI", wrapper)
3436

3537
# Ask for source text if not specified in sys.argv[1:]
3638
if not sys.argv[1:]:

0 commit comments

Comments
 (0)