Skip to content

Commit e2e785d

Browse files
committed
Remove init_config.py
It may become a bit unwieldy to make sure this matches the structure of default_config, given the amount of code repetition involved. It seems easier for a user to just create their own custom_config.yml file directly.
1 parent c6c1a49 commit e2e785d

File tree

5 files changed

+10
-174
lines changed

5 files changed

+10
-174
lines changed

docs/source/getting_started/structure.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Below is the directory structure of manim:
103103
├── family_ops.py # Process family members
104104
├── file_ops.py # Process files and directories
105105
├── images.py # Read image
106-
├── init_config.py # Configuration guide
107106
├── iterables.py # Functions related to list/dictionary processing
108107
├── paths.py # Curve path
109108
├── rate_functions.py # Some defined rate_functions

manimlib/__main__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from manimlib import __version__
55
from manimlib.config import manim_config
66
from manimlib.config import parse_cli
7-
import manimlib.utils.init_config
87
import manimlib.extract_scene
98
from manimlib.window import Window
109

@@ -55,9 +54,6 @@ def main():
5554
args = parse_cli()
5655
if args.version and args.file is None:
5756
return
58-
if args.config:
59-
manimlib.utils.init_config.init_customization()
60-
return
6157

6258
run_scenes()
6359

manimlib/config.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ def parse_cli():
147147
action="store_true",
148148
help="Show the output file in finder",
149149
)
150-
parser.add_argument(
151-
"--config",
152-
action="store_true",
153-
help="Guide for automatic configuration",
154-
)
155150
parser.add_argument(
156151
"--file_name",
157152
help="Name for the movie or image file",

manimlib/default_config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# This file determines the default configuration for how manim is
2+
# run, including names for directories it will write to, default
3+
# parameters for various classes, style choices, etc. To customize
4+
# your own, create a custom_config.yml file in whatever directory
5+
# you are running manim. For 3blue1brown, for instance, mind is
6+
# here: https://github.com/3b1b/videos/blob/master/custom_config.yml
7+
8+
# Alternatively, you can create it whereever you like, and on running
9+
# manim, pass in `--config_file /path/to/custom/config/file.yml`
10+
111
directories:
212
# Set this to true if you want the path to video files
313
# to match the directory structure of the path to the

manimlib/utils/init_config.py

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)