From 5c243f1cac5cc489f3bbb821ab5064d9edf7d449 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 15 Aug 2015 13:22:34 +0200 Subject: basic connection --- voctogui/voctogui.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'voctogui/voctogui.py') diff --git a/voctogui/voctogui.py b/voctogui/voctogui.py index 52bc3c0..932b8f9 100755 --- a/voctogui/voctogui.py +++ b/voctogui/voctogui.py @@ -24,8 +24,11 @@ Gst.init([]) # import local classes from lib.args import Args +from lib.config import Config from lib.ui import Ui +import lib.connection as Connection + # main class class Voctogui(object): def __init__(self): @@ -100,6 +103,13 @@ def main(): logging.info('Python Version: %s', sys.version_info) logging.info('GStreamer Version: %s', Gst.version()) + # connect to server + Connection.establish( + Config.get('server', 'host')) + + # fetch serverconfig from server + Config.fetchRemoteConfig() + # init main-class and main-loop logging.debug('initializing Voctogui') voctogui = Voctogui() -- cgit v1.2.3