]> www.vanbest.org Git - motioneye-debian/commitdiff
added pytz as tested dependency
authorCalin Crisan <ccrisan@gmail.com>
Sat, 16 May 2015 11:49:05 +0000 (14:49 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sat, 16 May 2015 11:49:05 +0000 (14:49 +0300)
motioneye.py

index ef752d919b7233c1fed02b6ededc08d5200f07c8..fa7633674ff09b891a70cdd54c2fdc43502322e7 100755 (executable)
@@ -193,6 +193,13 @@ def _test_requirements():
     except ImportError:
         has_pycurl = False
 
+    try:
+        import pytz  # @UnusedImport
+        has_pytz = True
+    
+    except ImportError:
+        has_pytz = False
+
     import mediafiles
     has_ffmpeg = mediafiles.find_ffmpeg() is not None
     
@@ -221,6 +228,10 @@ def _test_requirements():
         print('please install pycurl (python-pycurl)')
         ok = False
     
+    if not has_pytz:
+        print('please install pytz (python-pytz)')
+        ok = False
+    
     if not has_ffmpeg:
         print('please install ffmpeg')
         ok = False