mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +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()
|
||||
|
||||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue