Skip to content

Commit

Permalink
Rework entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed Jan 17, 2020
1 parent b4230c4 commit 41f8368
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions radicale.fcgi
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ WSGI-to-FastCGI mapper.
from flup.server.fcgi import WSGIServer
from radicale import application


WSGIServer(application).run()
if __name__ == "__main__":
WSGIServer(application).run()
5 changes: 3 additions & 2 deletions radicale.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""

import radicale.__main__
import runpy

radicale.__main__.run()
if __name__ == "__main__":
runpy.run_module("radicale", run_name="__main__")
2 changes: 0 additions & 2 deletions radicale.wsgi
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

"""
Radicale WSGI file (mod_wsgi and uWSGI compliant).
Expand Down
2 changes: 1 addition & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
#

# This file is part of Radicale Server - Calendar Server
# Copyright © 2009-2017 Guillaume Ayoub
# Copyright © 2017-2018 Unrud <unrud@outlook.com>
Expand Down

0 comments on commit 41f8368

Please sign in to comment.