def get_cwd(options):
    if not options.cwd:
        return None
    if not os.path.exists(options.cwd):
        raise exceptions.InvalidCwd(
            "can't --cwd to invalid path {0!r}".format(options.cwd))
    return options.cwd
Handles recording the user's access.
dataset/ETHPy150Open sashahart/vex/vex/main.py/get_cwd--crossover with--dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tastypie/throttle.py/BaseThrottle.accessed