summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-12-17 22:14:13 (GMT)
committerGitHub <noreply@github.com>2019-12-17 22:14:13 (GMT)
commita9d0a6a1b932752873e04714c5dda707729078e4 (patch)
treeeedcf638c3722effd86b8196a4f279e8707436cd /Parser
parent9e36589d49c1d6b06c0239fa69e8274d7e89e375 (diff)
downloadcpython-a9d0a6a1b932752873e04714c5dda707729078e4.zip
cpython-a9d0a6a1b932752873e04714c5dda707729078e4.tar.gz
cpython-a9d0a6a1b932752873e04714c5dda707729078e4.tar.bz2
bpo-36500: Simplify PCbuild/build.bat and prevent path separator changing in comments (GH-17644)
Diffstat (limited to 'Parser')
-rwxr-xr-xParser/asdl_c.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 52495e9..daac096 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1331,7 +1331,8 @@ common_msg = "/* File automatically generated by %s. */\n\n"
def main(srcfile, dump_module=False):
argv0 = sys.argv[0]
components = argv0.split(os.sep)
- argv0 = os.sep.join(components[-2:])
+ # Always join with '/' so different OS does not keep changing the file
+ argv0 = '/'.join(components[-2:])
auto_gen_msg = common_msg % argv0
mod = asdl.parse(srcfile)
if dump_module: