diff options
Diffstat (limited to 'src/launcher.py')
-rw-r--r-- | src/launcher.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/launcher.py b/src/launcher.py index be9b0cb..8b6c9a2 100644 --- a/src/launcher.py +++ b/src/launcher.py @@ -1,4 +1,5 @@ import os +import platform import time import threading @@ -6,6 +7,12 @@ from leap.app import main as leap_client from thandy.ClientCLI import update as thandy_update +bundles_per_platform = { + "Windows" : "/bundleinfo/LEAPClient-win/", + "Darwin" : "", + "Linux" : "/bundleinfo/LEAPClient/", +} + class Thandy(threading.Thread): def run(self): while True: @@ -19,13 +26,12 @@ class Thandy(threading.Thread): "updates") args = [ "--repo=repo/", - "--debug", # TODO: remove debug "--install", - "/bundleinfo/LEAPClient/" + bundles_per_platform[platform.system()] ] thandy_update(args) except Exception as e: - print "ERROR1:", e + print "ERROR:", e finally: time.sleep(60) |