1. Armin Rigo
  2. cpython-withatomic

Commits

Jeremy Hylton  committed b603307

Make path calculation platform independent

  • Participants
  • Parent commits 6ab15fc
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Parser/asdl_c.py

View file
     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")