Lines Matching defs: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')
117 kernel_path = os.path.join(build_dir, self._kernel_path)
147 linux_bin = os.path.join(build_dir, 'linux')
157 return os.path.join(build_dir, KCONFIG_PATH)
160 return os.path.join(build_dir, KUNITCONFIG_PATH)
163 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
169 if not os.path.exists(path):
176 if os.path.isdir(path):
177 path = os.path.join(path, KUNITCONFIG_PATH)
178 if not os.path.exists(path):
190 return os.path.join(build_dir, OUTFILE_PATH)
193 config_path = os.path.join(QEMU_CONFIGS_DIR, arch + '.py')
194 if os.path.isfile(config_path):
197 options = [f[:-3] for f in os.listdir(QEMU_CONFIGS_DIR) if f.endswith('.py')]
211 module_path = '.' + os.path.join(os.path.basename(QEMU_CONFIGS_DIR), os.path.basename(config_path))
283 if build_dir and not os.path.exists(build_dir):
284 os.mkdir(build_dir)
296 if os.path.exists(old_path):
297 os.remove(old_path) # write_to_file appends to the file
303 if not os.path.exists(old_path):
312 if not os.path.exists(kconfig_path):
322 os.remove(kconfig_path)