From: Jeremy Hylton Date: Tue, 4 Apr 2006 12:11:12 +0000 (+0000) Subject: Make path calculation platform independent X-Git-Tag: v2.5a1~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76c21bdb464d45b664d7532d9f5fac919dcdecb2;p=thirdparty%2FPython%2Fcpython.git Make path calculation platform independent --- diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 5bb42ecc82c4..fdbbeafa63e7 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -732,7 +732,7 @@ def main(srcfile): f.close() if SRC_DIR: - p = "%s/%s-ast.c" % (SRC_DIR, mod.name) + p = os.path.join(SRC_DIR, str(mod.name) + "-ast.c") else: p = "%s-ast.c" % mod.name f = open(p, "wb")