A community-maintained Python framework for creating mathematical animations.
fix: use correct re method
leotrsbfaffc736903
diff --git a/manim/__main__.py b/manim/__main__.pyindex 3d9b6aa80..50dbb1cbb 100644--- a/manim/__main__.py+++ b/manim/__main__.py@@ -136,7 +136,7 @@ def get_module(file_name):sys.exit(2)else:if os.path.exists(file_name):- module_name = re.replace(r"\..+$", "", file_name.replace(os.sep, "."))+ module_name = re.sub(r"\..+$", "", file_name.replace(os.sep, "."))spec = importlib.util.spec_from_file_location(module_name, file_name)module = importlib.util.module_from_spec(spec)spec.loader.exec_module(module)