Lines Matching refs:path
47 def extract_name(path):
49 return special_chars.sub('_', os.path.splitext(os.path.basename(path))[0])
59 def js_to_native_code(path, name, build_type):
60 with open(path, 'r') as js_source:
99 gen_line = "/* This file is generated by %s. Please do not modify. */" % os.path.basename(__file__)
107 files = glob.glob(os.path.join(script_args.js_source_path, '*.js'))
109 for path in files:
110 if os.path.basename(path) not in script_args.ignore_files:
111 name = extract_name(path)
112 gen_output.append(js_to_native_code(path, name, script_args.build_type))
121 with open(os.path.join(script_args.output_path, 'jerry-targetjs.h'), 'w') as gen_file: