From 789c76f2419354301443ad14e177523575707cbc Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Fri, 18 Jul 2025 17:47:01 +0900 Subject: [PATCH 1/2] Fix image_generator example error on Windows OS --- examples/tools/image_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tools/image_generator.py b/examples/tools/image_generator.py index fd6fcc6ba..b5f27cf1e 100644 --- a/examples/tools/image_generator.py +++ b/examples/tools/image_generator.py @@ -12,7 +12,7 @@ def open_file(path: str) -> None: if sys.platform.startswith("darwin"): subprocess.run(["open", path], check=False) # macOS elif os.name == "nt": # Windows - os.astartfile(path) # type: ignore + os.startfile(path) elif os.name == "posix": subprocess.run(["xdg-open", path], check=False) # Linux/Unix else: From 7b5dae9abae787c81b1956495ac1d84d26d7dded Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Fri, 18 Jul 2025 17:50:07 +0900 Subject: [PATCH 2/2] Update examples/tools/image_generator.py --- examples/tools/image_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tools/image_generator.py b/examples/tools/image_generator.py index b5f27cf1e..747b9ce92 100644 --- a/examples/tools/image_generator.py +++ b/examples/tools/image_generator.py @@ -12,7 +12,7 @@ def open_file(path: str) -> None: if sys.platform.startswith("darwin"): subprocess.run(["open", path], check=False) # macOS elif os.name == "nt": # Windows - os.startfile(path) + os.startfile(path) # type: ignore elif os.name == "posix": subprocess.run(["xdg-open", path], check=False) # Linux/Unix else: