From: Just van Rossum Date: Mon, 24 Sep 2001 17:29:09 +0000 (+0000) Subject: Fixed old bug (caused by careless Carbonizing) that noone noticed until X-Git-Tag: v2.2.1c1~1655 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c72d4cddc989a66da1f56f59bc3fc7c37df28915;p=python Fixed old bug (caused by careless Carbonizing) that noone noticed until this week (apparently me and Bob Heeter at more or less the same time). --- diff --git a/Mac/Tools/CGI/BuildCGIApplet.py b/Mac/Tools/CGI/BuildCGIApplet.py index 93c39093ac..0ee2ce0008 100644 --- a/Mac/Tools/CGI/BuildCGIApplet.py +++ b/Mac/Tools/CGI/BuildCGIApplet.py @@ -64,7 +64,7 @@ def mkcgifilename(filename): def buildone(template, wrapper, src, dst): buildtools.process(template, wrapper, dst, 1) # write source as a PYC resource into dst - ref = Res.FSpOpenResFile(dst, 1) + ref = Res.FSpOpenResFile(dst, 2) try: Res.UseResFile(ref) py_resource.frompyfile(src, "CGI_MAIN", preload=1)