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')
118 kernel_path = os.path.join(build_dir, self._kernel_path)
148 linux_bin = os.path.join(build_dir, 'linux')
158 return os.path.join(build_dir, KCONFIG_PATH)
161 return os.path.join(build_dir, KUNITCONFIG_PATH)
164 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
170 if not os.path.exists(path):
177 if os.path.isdir(path):
178 path = os.path.join(path, KUNITCONFIG_PATH)
179 if not os.path.exists(path):
191 return os.path.join(build_dir, OUTFILE_PATH)
194 config_path = os.path.join(QEMU_CONFIGS_DIR, arch + '.py')
195 if os.path.isfile(config_path):
198 options = [f[:-3] for f in os.listdir(QEMU_CONFIGS_DIR) if f.endswith('.py')]
212 module_path = '.' + os.path.join(os.path.basename(QEMU_CONFIGS_DIR), os.path.basename(config_path))
284 if build_dir and not os.path.exists(build_dir):
285 os.mkdir(build_dir)
297 if os.path.exists(old_path):
298 os.remove(old_path) # write_to_file appends to the file
304 if not os.path.exists(old_path):
313 if not os.path.exists(kconfig_path):
323 os.remove(kconfig_path)