code: def get_watchman_sockpath(binpath='watchman'):
      
      path = os.getenv('WATCHMAN_SOCK')
      if path:
          return path
  
      cmd = [binpath, '--output-encoding=json', 'get-sockname']
      result = subprocess.check_output(cmd)
      result = json.loads(result)
      return result['sockname']
docs: Find the watchman socket or raise.