A community-maintained Python framework for creating mathematical animations.
Fixed bug that broke some Windows CLIs (#336)
AetherBreeze06602b774bc2
diff --git a/manim/utils/config_utils.py b/manim/utils/config_utils.pyindex e3ffef8d6..7a1e1d562 100644--- a/manim/utils/config_utils.py+++ b/manim/utils/config_utils.py@@ -435,9 +435,11 @@ def _init_dirs(config):def _from_command_line():"""Determine if manim was called from the command line."""# Manim can be called from the command line in three different- # ways. The first two involve using the manim or manimcm commands+ # ways. The first two involve using the manim or manimcm commands.+ # Note that some Windows CLIs replace those commands with the path+ # to their executables, so we must check for this as wellprog = os.path.split(sys.argv[0])[-1]- from_cli_command = prog in ["manim", "manimcm"]+ from_cli_command = prog in ["manim", "manim.exe", "manimcm", "manimcm.exe"]# The third way involves using `python -m manim ...`. In this# case, the CLI arguments passed to manim do not include 'manim',