code style

This commit is contained in:
Jakob Ketterl 2019-05-10 23:47:49 +02:00
parent 1c4543b7bf
commit dc44c9ed61

View File

@ -1,15 +1,17 @@
from http.server import HTTPServer
from owrx.http import RequestHandler
from owrx.config import PropertyManager, FeatureDetector, RequirementMissingException
from owrx.config import PropertyManager, FeatureDetector
from owrx.source import SdrService
from socketserver import ThreadingMixIn
import logging
logging.basicConfig(level = logging.DEBUG, format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s")
class ThreadedHttpServer(ThreadingMixIn, HTTPServer):
pass
def main():
print()
print("OpenWebRX - Open Source SDR Web App for Everyone! | for license see LICENSE file in the package")
@ -21,7 +23,8 @@ def main():
cfg = __import__("config_webrx")
pm = PropertyManager.getSharedInstance()
for name, value in cfg.__dict__.items():
if (name.startswith("__")): continue
if name.startswith("__"):
continue
pm[name] = value
featureDetector = FeatureDetector()