diff --git a/build/generate_node_defines.py b/build/generate_node_defines.py index f2004abb9fe8..8f05f3881f6f 100755 --- a/build/generate_node_defines.py +++ b/build/generate_node_defines.py @@ -4,7 +4,7 @@ import sys DEFINE_EXTRACT_REGEX = re.compile('^ *# *define (\w*)', re.MULTILINE) -def main(outDir, headers): +def main(out_dir, headers): defines = [] for filename in headers: with open(filename, 'r') as f: @@ -15,13 +15,13 @@ def main(outDir, headers): for define in defines: push_and_undef += '#pragma push_macro("%s")\n' % define push_and_undef += '#undef %s\n' % define - with open(os.path.join(outDir, 'push_and_undef_node_defines.h'), 'w') as o: + with open(os.path.join(out_dir, 'push_and_undef_node_defines.h'), 'w') as o: o.write(push_and_undef) pop = '' for define in defines: pop += '#pragma pop_macro("%s")\n' % define - with open(os.path.join(outDir, 'pop_node_defines.h'), 'w') as o: + with open(os.path.join(out_dir, 'pop_node_defines.h'), 'w') as o: o.write(pop) def read_defines(content):