You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically the title. When rendering the scene from python itself (that's what is done in the actual tests), it is impossible to load a manim.cfg in the working directory as we can when doing from CLI.
IMO t's because of these lines (and more particular the else statement):
if_from_command_line():
args=_parse_cli(sys.argv[1:])
ifargs.config_fileisnotNone:
ifos.path.exists(args.config_file):
config_files.append(args.config_file)
else:
raiseFileNotFoundError(f"Config file {args.config_file} doesn't exist")
else:
script_directory_file_config=os.path.join(os.path.dirname(args.file), 'manim.cfg')
ifos.path.exists(script_directory_file_config):
config_files.append(script_directory_file_config)
else:
# In this case, we still need an empty args object.args=_parse_cli([], input=False)
# Need to populate the options left outargs.file, args.scene_names, args.output_file='', '', ''
We have discussed that previously on discord with @leotrs and @XorUnison , sorry if I missed something ;).
The text was updated successfully, but these errors were encountered:
huguesdevimeux
changed the title
Impossible to use a custom manom.cfg when NOT running from CLI
Impossible to use a custom manim.cfg when NOT running from CLI
Jul 8, 2020
Ah you're right! I guess that inner else clause should also be outside, so that manim always checks for a local file, regardless of how it's being called. Sounds like an easy PR ;)
Basically the title. When rendering the scene from python itself (that's what is done in the actual tests), it is impossible to load a
manim.cfg
in the working directory as we can when doing from CLI.IMO t's because of these lines (and more particular the else statement):
We have discussed that previously on discord with @leotrs and @XorUnison , sorry if I missed something ;).
The text was updated successfully, but these errors were encountered: