Make path calculation platform independent

This commit is contained in:
Jeremy Hylton 2006-04-04 12:11:12 +00:00
parent c410d6ce28
commit 76c21bdb46

View file

@ -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")