code: def get_project_root():
      
      try:
          tasks_py = sys.modules['tasks']
      except KeyError:
          return None
      else:
          return os.path.abspath(os.path.dirname(tasks_py.__file__))
docs: Determine location of `tasks.py`.