From ccb2bad53e2fbcb5bdc304ffa6b277b3ee333c04 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 29 Mar 2015 20:32:54 +0300 Subject: [PATCH] update module import fix --- motioneye.py | 3 ++- src/handlers.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.5