From 82cc9601d657965d9bff7cc0a63a603df0e1eae5 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Thu, 16 May 2019 14:16:50 -0700 Subject: Make output of generate_operator_out reproducible As part of using python_binary_host, argv[0] is often the extracted python script in a temporary directory. Just hardcode the generate_operator_out.py name so that a random directory isn't encoded in the output. Test: m art_compiler_operator_srcs; inspect output Change-Id: Ie2a875a1ab288bd56577b2451d4f3e6e0ad70032 --- tools/generate_operator_out.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/generate_operator_out.py') diff --git a/tools/generate_operator_out.py b/tools/generate_operator_out.py index 3bd62fe1db..73e96fec06 100755 --- a/tools/generate_operator_out.py +++ b/tools/generate_operator_out.py @@ -183,7 +183,7 @@ def main(): print('') for enum_name in _ENUMS: - print('// This was automatically generated by %s --- do not edit!' % sys.argv[0]) + print('// This was automatically generated by art/tools/generate_operator_out.py --- do not edit!') namespaces = _NAMESPACES[enum_name].split('::') for namespace in namespaces: -- cgit v1.2.3-59-g8ed1b