# This file is meant to sit in ~ for use from all shells.
from invoke import task

import datetime
import os

HOME = os.path.expanduser('~')

@task
def debug(c):
    result = c.run('which minetest')
    print(result.ok)

PAYROLL = f"{HOME}/Nanny.Payroll"

@task
def payroll(c):

    # For copying the latest file in
    c.run(f"files {HOME}/pixel7adocuments")
    c.run(f"files {HOME}/Nanny.Payroll/data/payroll_inbox")

    # For running the payroll scripts
    c.run(f"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter lab")

