Commit 70ae6f9e authored by Ganesh Katrapati's avatar Ganesh Katrapati
Browse files


parent c0f8cdee
web: python ./ $PORT
\ No newline at end of file
......@@ -2,7 +2,7 @@ from bottle import Bottle, run, template, debug, static_file, request
import os, sys
import requests
dirname = os.path.dirname(sys.argv[0])
#dirname = os.path.dirname(sys.argv[0])
app = Bottle()
......@@ -47,4 +47,5 @@ def send_static(filename):
static_f = static_file(filename, root='static/')
return static_f
run(app, host='', port=8000)
if __name__ == '__main__':
run(app, host='', port=sys.argv[1])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment