summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-04-29 14:52:42 +0100
committerMark Haines <mark.haines@matrix.org>2015-04-29 14:52:42 +0100
commit845b0b2c971e699a3f39b96ae418c6501f8a78b9 (patch)
tree762148097ef2a025ac759be11f6b775b0383f443 /synapse/app
parentbump syutil to 0.0.6 (diff)
downloadsynapse-845b0b2c971e699a3f39b96ae418c6501f8a78b9.tar.xz
Check requirements before doing anything else when running the homeserver
Diffstat (limited to '')
-rwxr-xr-xsynapse/app/homeserver.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index bc67e2a8e1..6f963cee22 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -16,6 +16,10 @@
 
 import sys
 sys.dont_write_bytecode = True
+from synapse.python_dependencies import check_requirements
+
+if __name__=='__main__':
+    check_requirements()
 
 from synapse.storage.engines import create_engine, IncorrectDatabaseSetup
 from synapse.storage import (
@@ -24,7 +28,6 @@ from synapse.storage import (
 
 from synapse.server import HomeServer
 
-from synapse.python_dependencies import check_requirements
 
 from twisted.internet import reactor
 from twisted.application import service