Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix #667. Convert file_name to string before comparing. (#755)

Aathish Sivasubrahmanianc83b5ba4b3b4
diff --git a/manim/utils/module_ops.py b/manim/utils/module_ops.py
index 0dd85f3ba..02a85673b 100644
--- a/manim/utils/module_ops.py
+++ b/manim/utils/module_ops.py
@@ -9,7 +9,7 @@ import re
def get_module(file_name):
- if file_name == "-":
+ if str(file_name) == "-":
module = types.ModuleType("input_scenes")
logger.info(
"Enter the animation's code & end with an EOF (CTRL+D on Linux/Unix, CTRL+Z on Windows):"