diff options
Diffstat (limited to 'python/server.py')
-rw-r--r-- | python/server.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/server.py b/python/server.py index 64a91ca3..3c6ddb91 100644 --- a/python/server.py +++ b/python/server.py @@ -20,7 +20,7 @@ class LedgerHandler(BaseHTTPRequestHandler): except Exception: print "Saw exception in POST handler" -def cmd_server(): +def main(*args): try: port = 9000 server = HTTPServer(('', port), LedgerHandler) @@ -31,3 +31,6 @@ def cmd_server(): print "Shutting down server" server.socket.close() +print __name__ +if __name__ == '__main__': + main() |