From 1a39a8fa75494a05606312342d1cfa8d94035efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Touceda?= Date: Thu, 28 Mar 2013 15:37:57 -0300 Subject: Add python launcher that launches recurring updates --- src/launcher.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/launcher.py (limited to 'src/launcher.py') diff --git a/src/launcher.py b/src/launcher.py new file mode 100644 index 0000000..61e2a7f --- /dev/null +++ b/src/launcher.py @@ -0,0 +1,30 @@ +import time +import threading + +from leap.app import main as leap_client +from thandy.ClientCLI import update as thandy_update + + +class Thandy(threading.Thread): + def run(self): + while True: + try: + args = [ + "--repo=/home/chiiph/Code/leap/repo/", + "--debug", + "--install", + "/bundleinfo/LEAPClient/" + ] + thandy_update(args) + except Exception as e: + print "ERROR1:", e + finally: + time.sleep(60) + + +if __name__ == "__main__": + thandy_thread = Thandy() + thandy_thread.daemon = True + thandy_thread.start() + + leap_client() -- cgit v1.2.3