X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/9183d83c72880a0f27ab63ce6dbb3156f7fb7624..4d41afb53f4bec9e412e3ec16cb31daaea6dd8c3:/files/pc/tasks.py?ds=inline diff --git a/files/pc/tasks.py b/files/pc/tasks.py index e2f786a..b243ecc 100644 --- a/files/pc/tasks.py +++ b/files/pc/tasks.py @@ -26,7 +26,8 @@ for url in expect_URLs: key = f'URL_{url.upper()}' result = os.environ.get(key) if not result: - raise ValueError(f'Missing expected {key} in environment.') + print(f'Missing expected {key} in environment.') + # raise ValueError(f'Missing expected {key} in environment.') URLS[url] = result @@ -35,7 +36,7 @@ for path in expect_PATHs: key = f'PATH_{path.upper()}' result = os.environ.get(key) if not result: - raise ValueError(f'Missing expected {key} in environment.') + print(f'Missing expected {key} in environment.') PATHS[path] = result @@ -125,14 +126,7 @@ def payroll(c): # For editing files code(c, f"{PAYROLL}") - payroll_jupyter(c) - -@task -def payroll_jupyter(c): - - # For running the payroll scripts - c.run(f"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter-lab") - + print("Use Invoke") @task() def screenshare(c): @@ -183,3 +177,6 @@ def get_drive_info(c): def podcasts(c): folder(c, PATHS['podcasts']) +@task +def matrix(c): + c.run('gomuks')