mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 08:39:26 -05:00
Check requirements before doing anything else when running the homeserver
This commit is contained in:
parent
c0036ced54
commit
845b0b2c97
@ -16,6 +16,10 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
sys.dont_write_bytecode = True
|
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.engines import create_engine, IncorrectDatabaseSetup
|
||||||
from synapse.storage import (
|
from synapse.storage import (
|
||||||
@ -24,7 +28,6 @@ from synapse.storage import (
|
|||||||
|
|
||||||
from synapse.server import HomeServer
|
from synapse.server import HomeServer
|
||||||
|
|
||||||
from synapse.python_dependencies import check_requirements
|
|
||||||
|
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
|
Loading…
Reference in New Issue
Block a user