Skip to content

Video editing with Python

Fix not importing everything from editor.py (#1453)

Tom Burrows4c93a6f91320
diff --git a/moviepy/editor.py b/moviepy/editor.py
index 0e0d90fe..4723c9d8 100644
--- a/moviepy/editor.py
+++ b/moviepy/editor.py
@@ -11,15 +11,16 @@ MoviePy that you will use for live editing by simply typing:
import os
-from . import *
-from .video.io.html_tools import ipython_display
+import moviepy # So that we can access moviepy.__all__ later
+from moviepy import *
+from moviepy.video.io.html_tools import ipython_display
try:
from .video.io.sliders import sliders
except ImportError:
def sliders(*args, **kwargs):
- """NOT AVAILABLE : sliders requires matplotlib installed."""
+ """NOT AVAILABLE: sliders requires matplotlib installed"""
raise ImportError("sliders requires matplotlib installed")
@@ -63,6 +64,6 @@ except ImportError:
AudioClip.preview = preview
-__all__ = ["ipython_display", "sliders"]
+__all__ = moviepy.__all__ + ["ipython_display", "sliders"]
del preview, show