From 6ef986754ab0f94e0c48bd1e903cfb8228bae8ff Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 16 May 2015 14:49:05 +0300 Subject: [PATCH] added pytz as tested dependency --- motioneye.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/motioneye.py b/motioneye.py index ef752d9..fa76336 100755 --- a/motioneye.py +++ b/motioneye.py @@ -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 -- 2.39.5