Lines Matching refs:os
21 import os
29 return os.path.exists(os.path.join(src_path, '.gn'))
33 if (not os.path.isdir(src_dir)) or is_top_dir(src_dir):
35 for file in os.listdir(src_dir):
36 file_path = os.path.join(src_dir, file)
37 if os.path.isfile(file_path):
38 if os.path.basename(file_path) == target_cfg:
40 return find_config_parent_file(os.path.dirname(src_dir), target_cfg)
45 if not os.path.exists(readme_file_path) or os.path.isdir(readme_file_path):
61 license_file_path = os.path.join(os.path.dirname(readme_file_path),
63 if not os.path.exists(license_file_path):
66 copyright_file_path = os.path.join(os.path.dirname(copyright_file),
68 if not os.path.exists(copyright_file_path):
77 expect_file = os.path.join(module_source_dir, target_cfg)
78 if os.path.exists(expect_file):
81 relpath = os.path.relpath(module_source_dir, root_out_dir)
82 parent_cfg_dir = find_config_parent_file(os.path.dirname(relpath),
85 config_file = os.path.join(parent_cfg_dir, target_cfg)
108 nf_dest_dir = os.path.join(root_out_dir, 'NOTICE_FILE', target_name)
111 while os.path.exists(os.path.join(nf_dest_dir,
115 nf_dest_list.append(os.path.join(nf_dest_dir,
121 dir_name = os.path.dirname(filename)
122 if not os.path.exists(dir_name):
127 target_license_path = os.path.join(target_path, 'NOTICE')
157 target_path = os.path.join(root_out_dir, 'NOTICE_FILE', target_name)
158 if os.path.exists(nf_src) and os.path.exists(cp_src):