summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/httpserver.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2017-01-07 12:44:34 +0100
committerOliver Poignant <oliver@poignant.se>2017-01-07 12:44:34 +0100
commit381f7ae1fb5567d34493330286876149bee7c170 (patch)
treee6f8ed7067753710bd0701f189fe0d4122035a4d /gitautodeploy/httpserver.py
parent3171f1765c1b1c5f6cc3a064fc5e2653098fc445 (diff)
downloadGit-Auto-Deploy-381f7ae1fb5567d34493330286876149bee7c170.zip
Git-Auto-Deploy-381f7ae1fb5567d34493330286876149bee7c170.tar.gz
Git-Auto-Deploy-381f7ae1fb5567d34493330286876149bee7c170.tar.bz2
Fixing ImportError due to changed cwd
Diffstat (limited to 'gitautodeploy/httpserver.py')
-rw-r--r--gitautodeploy/httpserver.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitautodeploy/httpserver.py b/gitautodeploy/httpserver.py
index 290d0f8..65ccc3d 100644
--- a/gitautodeploy/httpserver.py
+++ b/gitautodeploy/httpserver.py
@@ -1,3 +1,7 @@
+from __future__ import absolute_import
+from .webhook import WebhookRequestFilter, WebbhookRequestProcessor
+from .events import WebhookAction
+
def WebhookRequestHandlerFactory(config, event_store, server_status, is_https=False):
"""Factory method for webhook request handler class"""
try:
@@ -88,8 +92,6 @@ def WebhookRequestHandlerFactory(config, event_store, server_status, is_https=Fa
from threading import Timer
import logging
import json
- from .events import WebhookAction
- from .webhook import WebhookRequestFilter, WebbhookRequestProcessor
import threading
logger = logging.getLogger()