def payday():

    # Wire things up.
    # ===============

    env = wireup.env()
    wireup.db(env)
    wireup.billing(env)


    # Lazily import the billing module.
    # =================================
    # This dodges a problem where db in billing is None if we import it from
    # gratipay before calling wireup.billing.

    from gratipay.billing.payday import Payday

    try:
        Payday.start().run()
    except __HOLE__:
        pass
    except:
        import aspen
        import traceback
        aspen.log(traceback.format_exc())
dataset/ETHPy150Open gratipay/gratipay.com/gratipay/cli.py/payday