Skip to content

Commit 7a8866f

Browse files
authored
Fix image_generator example error on Windows OS (#1180)
Due to the method name typo, it does not work on the OS.
1 parent de8accc commit 7a8866f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tools/image_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def open_file(path: str) -> None:
1212
if sys.platform.startswith("darwin"):
1313
subprocess.run(["open", path], check=False) # macOS
1414
elif os.name == "nt": # Windows
15-
os.astartfile(path) # type: ignore
15+
os.startfile(path) # type: ignore
1616
elif os.name == "posix":
1717
subprocess.run(["xdg-open", path], check=False) # Linux/Unix
1818
else:

0 commit comments

Comments
 (0)