mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Make path calculation platform independent
This commit is contained in:
parent
c410d6ce28
commit
76c21bdb46
1 changed files with 1 additions and 1 deletions
|
|
@ -732,7 +732,7 @@ def main(srcfile):
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
if SRC_DIR:
|
if SRC_DIR:
|
||||||
p = "%s/%s-ast.c" % (SRC_DIR, mod.name)
|
p = os.path.join(SRC_DIR, str(mod.name) + "-ast.c")
|
||||||
else:
|
else:
|
||||||
p = "%s-ast.c" % mod.name
|
p = "%s-ast.c" % mod.name
|
||||||
f = open(p, "wb")
|
f = open(p, "wb")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue