<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_working_dir(script__file__):
 """ hardcoded sets the 'equivalent' working directory if not in git """

    start = Path(script__file__).resolve()
    _root = Path(start.root)
    working_dir = start
    while not list(working_dir.glob('.git')):
        if working_dir == _root:
            return

        working_dir = working_dir.parent

    return working_dir