code: def search_auth_file(filename='dish.json'):
      
      if 'DHIS_HOME' in os.environ:
          return os.path.join(os.environ['DHIS_HOME'], filename)
      else:
          home_path = os.path.expanduser(os.path.join('~'))
          for root, dirs, files in os.walk(home_path):
              if filename in files:
                  return os.path.join(root, filename)
      raise ClientException("'{}' not found - searched in $DHIS_HOME and in home folder".format(filename))
docs: Search filename in
      - A) DHIS_HOME (env variable)
      - B) current user's home folder
      :param filename: the filename to search for
      :return: full path of filename