Browse Source

print port

master
j 4 years ago
parent
commit
2a3b48860d
  1. 1
      .gitignore
  2. 5
      server.py

1
.gitignore

@ -1 +1,2 @@
camera.json
__pycache__

5
server.py

@ -76,10 +76,10 @@ class ControlQueue:
self._worker = threading.Thread(target=self.worker)
self._worker.start()
def put(self, filename):
def put(self, command):
if self.q.empty():
self.camera.abort = False
self.q.put(filename)
self.q.put(command)
def join(self):
self.shutdown = True
@ -208,6 +208,7 @@ def main():
'gzip': True,
}
app = Application(handlers, **options)
print('listening on http://%s:%s/' % (ADDRESS, PORT))
app.listen(PORT, ADDRESS)
main = IOLoop.instance()

Loading…
Cancel
Save