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')
117 kernel_path = os.path.join(build_dir, self._kernel_path)
147 linux_bin = os.path.join(build_dir, 'linux')
156 return os.path.join(build_dir, KCONFIG_PATH)
159 return os.path.join(build_dir, KUNITCONFIG_PATH)
162 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
168 if not os.path.exists(path):
175 if os.path.isdir(path):
176 path = os.path.join(path, KUNITCONFIG_PATH)
177 if not os.path.exists(path):
189 return os.path.join(build_dir, OUTFILE_PATH)
192 config_path = os.path.join(QEMU_CONFIGS_DIR, arch + '.py')
193 if os.path.isfile(config_path):
196 options = [f[:-3] for f in os.listdir(QEMU_CONFIGS_DIR) if f.endswith('.py')]
210 module_path = '.' + os.path.join(os.path.basename(QEMU_CONFIGS_DIR), os.path.basename(config_path))
282 if build_dir and not os.path.exists(build_dir):
283 os.mkdir(build_dir)
295 if os.path.exists(old_path):
296 os.remove(old_path) # write_to_file appends to the file
302 if not os.path.exists(old_path):
311 if not os.path.exists(kconfig_path):
321 os.remove(kconfig_path)