forked from s3lph/matemat
16 lines
444 B
Python
16 lines
444 B
Python
|
|
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
|
|
MatematWebserver(port=port).start()
|