Take scene finding messages out of constants

This commit is contained in:
Grant Sanderson
2021-01-02 22:26:49 -08:00
parent e01496e8bd
commit 6da1836f02
2 changed files with 1 additions and 17 deletions

View File

@ -70,19 +70,6 @@ OBLIQUE = 'OBLIQUE'
BOLD = 'BOLD'
SCENE_NOT_FOUND_MESSAGE = """
{} is not in the script
"""
CHOOSE_NUMBER_MESSAGE = """
Choose number corresponding to desired scene/arguments.
(Use comma separated list for multiple entries)
Choice(s): """
INVALID_NUMBER_MESSAGE = "Fine then, if you don't want to give a valid number I'll just quit"
NO_SCENE_MESSAGE = """
There are no scenes inside that module
"""
LOW_QUALITY_CAMERA_CONFIG = {
"pixel_height": 480,
"pixel_width": 854,

View File

@ -4,7 +4,6 @@ import logging
from manimlib.scene.scene import Scene
from manimlib.config import get_custom_defaults
import manimlib.constants
class BlankScene(Scene):
@ -79,9 +78,7 @@ def get_scenes_to_render(scene_classes, scene_config, config):
if not found and (scene_name != ""):
logging.log(
logging.ERROR,
manimlib.constants.SCENE_NOT_FOUND_MESSAGE.format(
scene_name
),
f"No scene named {scene_name} found",
file=sys.stderr
)
if result: