2018-06-12 21:45:50 +02:00
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
# Those imports are actually needed, as they implicitly register pagelets.
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
from matemat.webserver.pagelets import *
|
|
|
|
from matemat.webserver import MatematWebserver
|
|
|
|
|
|
|
|
# Read HTTP port from command line
|
|
|
|
port: int = 8080
|
|
|
|
if len(sys.argv) > 1:
|
|
|
|
port = int(sys.argv[1])
|
|
|
|
|
|
|
|
# Start the web server
|
2018-06-13 00:00:41 +02:00
|
|
|
MatematWebserver(port=port).start()
|