From: Calin Crisan Date: Sat, 16 May 2015 11:49:05 +0000 (+0300) Subject: added pytz as tested dependency X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=6ef986754ab0f94e0c48bd1e903cfb8228bae8ff;p=motioneye-debian added pytz as tested dependency --- 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