Skip to content

Commit 1f85f85

Browse files
fixed -f flag (#243)
1 parent 3f6b9bf commit 1f85f85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manim/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ def open_file_if_needed(file_writer):
3636

3737
for file_path in file_paths:
3838
if current_os == "Windows":
39-
os.startfile(os.path.dirname(file_path))
39+
if file_writer_config["preview"]:
40+
os.startfile(file_path)
41+
if file_writer_config["show_file_in_finder"]:
42+
os.startfile(os.path.dirname(file_path))
4043
else:
4144
commands = []
4245
if current_os == "Linux":

0 commit comments

Comments
 (0)