Lines Matching refs:os

8 import os
13 lvgl_test_dir = os.path.dirname(os.path.realpath(__file__))
14 lvgl_script_path = os.path.join(lvgl_test_dir, "../scripts")
17 wayland_dir = os.path.join(lvgl_test_dir, "wayland_protocols")
18 wayland_protocols_dir = os.path.realpath("/usr/share/wayland-protocols")
74 return os.path.join(lvgl_test_dir, get_base_build_dir(options_name))
82 if not os.path.isdir(wayland_dir):
83 os.mkdir(wayland_dir)
86 os.path.join(wayland_protocols_dir, "stable/xdg-shell/xdg-shell.xml"),
87 os.path.join(wayland_dir, "wayland_xdg_shell.h.original"),
92 os.path.join(wayland_protocols_dir, "stable/xdg-shell/xdg-shell.xml"),
93 os.path.join(wayland_dir, "wayland_xdg_shell.c.original"),
97 with open(os.path.join(wayland_dir, "wayland_xdg_shell.h"), "w") as outfile:
99 os.path.join(wayland_dir, "wayland_xdg_shell.h.original")], stdout=outfile)
101 with open(os.path.join(wayland_dir, "wayland_xdg_shell.c"), "w") as outfile:
103 os.path.join(wayland_dir, "wayland_xdg_shell.c.original")], stdout=outfile)
105 subprocess.check_call(['rm', os.path.join(wayland_dir, "wayland_xdg_shell.c.original")])
106 subprocess.check_call(['rm', os.path.join(wayland_dir, "wayland_xdg_shell.h.original")])
125 os.chdir(lvgl_test_dir)
131 if not os.path.isdir(build_dir):
132 os.mkdir(build_dir)
134 os.chdir(build_dir)
139 '--parallel', str(os.cpu_count())])
152 os.chdir(get_build_dir(options_name))
156 '--parallel', str(os.cpu_count()),
176 os.chdir(lvgl_test_dir)
178 os.mkdir('report')
179 root_dir = os.pardir
183 '-j', str(os.cpu_count()), '--print-summary',
193 png_path = os.path.join(lvgl_test_dir, "test_images/pngs")
202 … outputs = os.path.join(lvgl_test_dir, f"test_images/stride_align{align}/{compress_name}/")
203 os.makedirs(outputs, exist_ok=True)
208 output = os.path.join(outputs, f"{Path(png).stem}_{fmt.name}.bin")
210 … output = os.path.join(outputs, f"{Path(png).stem}_{fmt.name}_{compress.name}_align{align}.c")