openwebrx-clone/server.py

14 lines
388 B
Python
Raw Normal View History

2019-05-03 20:59:24 +00:00
from http.server import HTTPServer
from owrx.http import RequestHandler
2019-05-04 14:56:23 +00:00
from owrx.config import PropertyManager
cfg=__import__("config_webrx")
pm = PropertyManager.getSharedInstance()
for name, value in cfg.__dict__.items():
if (name.startswith("__")): continue
pm.getProperty(name).setValue(value)
2019-05-03 20:59:24 +00:00
server = HTTPServer(('0.0.0.0', 3000), RequestHandler)
server.serve_forever()