Skip to content

Commit a144dd1

Browse files
committed
Fix #453: PR review recommendations applied
1 parent 9b61e3d commit a144dd1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manim/config/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ def _parse_config(config_parser, args):
156156
# Set the different loggers
157157
set_rich_logger(config_parser["logger"], file_writer_config["verbosity"])
158158
if file_writer_config["log_to_file"]:
159-
# IMPORTANT note about file name : The log file name will be the scene_name get from the args (contained in file_writer_config). So it can differ from the real name of the scene.
159+
# Note about log_file_name : The log file name will be the <name_of_animation_file>_<name_of_scene>.log
160+
# get from the args (contained in file_writer_config). So it can differ from the real name of the scene.
161+
# <name_of_scene> would only appear if scene name was provided on manim call
160162
scene_name_suffix = "".join(file_writer_config["scene_names"])
161-
scene_file_name = os.path.basename(args.file).split(".")[
162-
0
163-
] # takes filename and removes extension
163+
scene_file_name = os.path.basename(args.file).split(".")[0]
164164
log_file_name = (
165165
f"{scene_file_name}_{scene_name_suffix}.log"
166166
if scene_name_suffix

0 commit comments

Comments
 (0)