Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions manim/utils/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 well
prog = 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',
Expand Down