]> granicus.if.org Git - python/commitdiff
Make path calculation platform independent
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Apr 2006 12:11:12 +0000 (12:11 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Apr 2006 12:11:12 +0000 (12:11 +0000)
Parser/asdl_c.py

index 5bb42ecc82c4f0d954c0b3efa934fe5035fbb966..fdbbeafa63e725c1dd5954b3e91f8667e973ff7c 100755 (executable)
@@ -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")