Lines Matching refs:os
12 import os
27 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))
28 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs')
32 default = os.path.join(build_dir, default)
124 kernel_path = os.path.join(build_dir, self._kernel_path)
187 config_path = os.path.join(QEMU_CONFIGS_DIR, arch + '.py')
190 elif os.path.isfile(config_path):
193 options = [f[:-3] for f in os.listdir(QEMU_CONFIGS_DIR) if f.endswith('.py')]
207 module_path = '.' + os.path.join(os.path.basename(QEMU_CONFIGS_DIR), os.path.basename(config_path))
243 if os.path.isdir(kunitconfig_path):
244 kunitconfig_path = os.path.join(kunitconfig_path, KUNITCONFIG_PATH)
245 if not os.path.exists(kunitconfig_path):
249 if not os.path.exists(kunitconfig_path):
279 if build_dir and not os.path.exists(build_dir):
280 os.mkdir(build_dir)
293 if os.path.exists(kconfig_path):
299 os.remove(kconfig_path)