FIilter usb devices

This commit is contained in:
ori
2019-04-13 11:57:43 -07:00
parent cf7de01338
commit 400de5eb48
5 changed files with 59 additions and 29 deletions

View File

@@ -1,6 +1,7 @@
import tornado.websocket
import json
import os
from ..classes.SettingsManager import SettingsManager
class ChameleonWebSocket(tornado.websocket.WebSocketHandler):
@@ -11,6 +12,7 @@ class ChameleonWebSocket(tornado.websocket.WebSocketHandler):
def __init__(self, application, request, **kwargs):
super().__init__(application, request, **kwargs)
self.smng = SettingsManager()
self.settings_path = os.path.join(os.getcwd(), "settings")
self.cams_path = os.path.join(self.settings_path, "cams")
self.init_settings()