summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2006-04-04 12:11:12 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2006-04-04 12:11:12 (GMT)
commit76c21bdb464d45b664d7532d9f5fac919dcdecb2 (patch)
tree5008450ce89525bc21cd50f012475d0f13f511e7
parentc410d6ce289c4f3e9189afa3e2fef8b0912f398b (diff)
downloadcpython-76c21bdb464d45b664d7532d9f5fac919dcdecb2.zip
cpython-76c21bdb464d45b664d7532d9f5fac919dcdecb2.tar.gz
cpython-76c21bdb464d45b664d7532d9f5fac919dcdecb2.tar.bz2
Make path calculation platform independent
-rwxr-xr-xParser/asdl_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 5bb42ec..fdbbeaf 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")