summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/gitautodeploy.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2017-01-04 22:50:52 +0100
committerOliver Poignant <oliver@poignant.se>2017-01-04 22:50:52 +0100
commit647e2bf9586e90bdd48eeb4f0a42c1211badaa11 (patch)
tree56edd5cb9669065e76efcc6dd8d450ba8ca26c12 /gitautodeploy/gitautodeploy.py
parent56d76f87774c2d0ef6b6afa7895f7ce81b3ee6bb (diff)
downloadGit-Auto-Deploy-647e2bf9586e90bdd48eeb4f0a42c1211badaa11.zip
Git-Auto-Deploy-647e2bf9586e90bdd48eeb4f0a42c1211badaa11.tar.gz
Git-Auto-Deploy-647e2bf9586e90bdd48eeb4f0a42c1211badaa11.tar.bz2
Bugfixes and version bump
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r--gitautodeploy/gitautodeploy.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py
index ebc5570..12b2da3 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -368,6 +368,19 @@ class GitAutoDeploy(object):
from .events import SystemEvent
import threading
+ try:
+ from autobahn.websocket import WebSocketServerProtocol, WebSocketServerFactory
+ from twisted.internet import reactor
+
+ # Given that the nessecary dependencies are present, notify the
+ # event that we expect the web socket server to be started
+ self._startup_event.ws_started = False
+ except ImportError:
+ pass
+
+ # Notify the event that we expect the http server to be started
+ self._startup_event.http_started = False
+
# Add script dir to sys path, allowing us to import sub modules even after changing cwd
sys.path.insert(1, os.path.dirname(os.path.realpath(__file__)))