blob: c252f9918389b8afd86cad561f84e0e628998438 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env python3
import sys
import ickweb
controller = sys.argv[1]
client_secret_filename = sys.argv[2]
port = int(sys.argv[3])
with open(client_secret_filename) as f:
client_secret = f.readline().strip()
our_url = '{}/web'.format(controller)
app = ickweb.create_app(our_url, controller, client_secret)
app.run(host='localhost', port=port)
|