Lines Matching refs:os
20 import os
23 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
47 format(os.path.dirname(options.module_list_file)))
48 if not os.path.exists(os.path.dirname(options.module_list_file)):
49 makedirs(os.path.dirname(options.module_list_file))
51 with os.fdopen(os.open(options.module_list_file,
52 os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR),
64 fold = os.path.join(options.sources_file_search_root_dir, \
66 if not os.path.exists(fold):
72 with os.fdopen(os.open(os.path.join(fold, sources_file_name),
73 os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR),
78 os.path.dirname(options.source_dir), source)