Lines Matching refs:os
17 import os
24 os.path.abspath(os.path.dirname(os.path.abspath(
25 os.path.dirname(__file__)))))
32 if not os.path.exists(opensource_config_file):
36 src_dir = os.path.dirname(opensource_config_file)
37 dst_dir = os.path.join(package_dir, os.path.relpath(src_dir, top_dir))
40 if os.path.exists(dst_dir):
48 release_file = os.path.join(dst_dir, RELEASE_FILENAME)
49 os.remove(release_file)
54 if not os.path.exists(opensource_config_file):
75 file_dir_names = os.listdir(scan_dir)
77 file_dir_path = os.path.join(scan_dir, file_dir_name)
78 if os.path.isdir(file_dir_path) and not os.path.islink(file_dir_path):
80 elif file_dir_path == os.path.join(scan_dir, RELEASE_FILENAME):
99 dir_set = set([os.path.join(top_dir, _dir) for _dir in scan_dir_list])
103 if not os.path.isdir(scan_dir):
110 if os.path.exists(package_dir):
136 package_dir = os.path.dirname(options.output)
137 if os.path.exists(package_dir):
139 os.makedirs(package_dir, exist_ok=True)