From: Calin Crisan Date: Sun, 29 Mar 2015 17:32:54 +0000 (+0300) Subject: update module import fix X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=ccb2bad53e2fbcb5bdc304ffa6b277b3ee333c04;p=motioneye-debian update module import fix --- diff --git a/motioneye.py b/motioneye.py index 5a8106b..3426807 100755 --- a/motioneye.py +++ b/motioneye.py @@ -28,10 +28,11 @@ import sys from tornado.httpclient import AsyncHTTPClient import settings -import update sys.path.append(os.path.join(getattr(settings, 'PROJECT_PATH', os.path.dirname(sys.argv[0])), 'src')) +import update + VERSION = '0.23' diff --git a/src/handlers.py b/src/handlers.py index d799c96..12a302a 100644 --- a/src/handlers.py +++ b/src/handlers.py @@ -1327,7 +1327,7 @@ class MovieHandler(BaseHandler): class LogHandler(BaseHandler): LOGS = { - 'motion': (os.path.join(settings.LOG_PATH, 'motion.log'), 'motion.log') + 'motion': (os.path.join(settings.LOG_PATH, 'motion.log'), 'motion.log'), } @BaseHandler.auth(admin=True)