]> www.vanbest.org Git - motioneye-debian/commitdiff
requirements test fix
authorCalin Crisan <ccrisan@gmail.com>
Sun, 24 Nov 2013 14:24:28 +0000 (16:24 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 24 Nov 2013 14:24:28 +0000 (16:24 +0200)
motioneye.py

index bab87879d6e46958c11b7b06a4604e2b9942ed1f..ec399531563d27e5bd30330052ab9666da265019 100755 (executable)
@@ -32,9 +32,6 @@ VERSION = '0.7'
 
 
 def _test_requirements():
-    import mediafiles
-    import motionctl
-    import v4l2ctl
     
     try:
         import tornado  # @UnusedImport
@@ -57,8 +54,13 @@ def _test_requirements():
     except ImportError:
         pil = False
 
+    import mediafiles
     ffmpeg = mediafiles.find_ffmpeg() is not None
+    
+    import motionctl
     motion = motionctl.find_motion() is not None
+    
+    import v4l2ctl
     v4lutils = v4l2ctl.find_v4l2_ctl() is not None
     
     ok = True