Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Only change backslash on windows

pdcxsac8773870172
diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py
index 4e69e6b25..72dde6a4d 100644
--- a/manimlib/scene/scene.py
+++ b/manimlib/scene/scene.py
@@ -719,7 +719,10 @@ class Scene(Container):
)
with open(file_list, 'w') as fp:
for pf_path in partial_movie_files:
- fp.write("file {}\n".format(pf_path).replace('\\', '/'))
+ if os.name == 'nt':
+ fp_path = fp_path.replace('\\', '/')
+
+ fp.write("file {}\n".format(pf_path))
movie_file_path = self.get_movie_file_path()
commands = [