Lines Matching refs:os
17 import os
24 cur_dir = os.getcwd()
26 build_config_file = os.path.join(
28 if os.path.exists(build_config_file):
30 cur_dir = os.path.dirname(cur_dir)
35 if not os.path.exists(input_file):
54 if not os.path.exists(input_file):
71 file_dir = os.path.dirname(os.path.abspath(output_file))
72 if not os.path.exists(file_dir):
73 os.makedirs(file_dir, exist_ok=True)
85 if os.path.exists(output_file) and os.path.isfile(output_file):
103 gn_exe = os.path.join(code_dir, f'prebuilts/build-tools/{os_name}-x86/bin/gn')
104 file_dir = os.path.dirname(os.path.abspath(output_file))
105 if not os.path.exists(file_dir):
106 os.makedirs(file_dir, exist_ok=True)