Lines Matching full:os
13 import os
31 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))
32 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs')
120 kernel_path = os.path.join(build_dir, self._kernel_path)
153 linux_bin = os.path.join(build_dir, 'linux')
163 return os.path.join(build_dir, KCONFIG_PATH)
166 return os.path.join(build_dir, KUNITCONFIG_PATH)
169 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
175 if not os.path.exists(path):
182 if os.path.isdir(path):
183 path = os.path.join(path, KUNITCONFIG_PATH)
184 if not os.path.exists(path):
196 return os.path.join(build_dir, OUTFILE_PATH)
199 config_path = os.path.join(QEMU_CONFIGS_DIR, arch + '.py')
200 if os.path.isfile(config_path):
203 options = [f[:-3] for f in os.listdir(QEMU_CONFIGS_DIR) if f.endswith('.py')]
217 module_path = '.' + os.path.join(os.path.basename(QEMU_CONFIGS_DIR), os.path.basename(config_path))
289 if build_dir and not os.path.exists(build_dir):
290 os.mkdir(build_dir)
302 if os.path.exists(old_path):
303 os.remove(old_path) # write_to_file appends to the file
309 if not os.path.exists(old_path):
318 if not os.path.exists(kconfig_path):
328 os.remove(kconfig_path)