def get_default_config_file_path():
    """
        Returns the absolute path to the default placement of the
        config file (~/.gnippy)
    """
    # --- This section has been borrowed from boto ------------------------
    # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
    # Copyright (c) 2011 Chris Moyer http://coredumped.org/
    # https://raw.github.com/boto/boto/develop/boto/pyami/config.py
    #
    # If running in Google App Engine there is no "user" and
    # os.path.expanduser() will fail. Attempt to detect this case and use a
    # no-op expanduser function in this case.
    try:
      os.path.expanduser('~')
      expanduser = os.path.expanduser
    except (AttributeError, __HOLE__):
      # This is probably running on App Engine.
      expanduser = (lambda x: x)
    # ---End borrowed section ---------------------------------------------
    return os.path.join(expanduser("~"), ".gnippy")
dataset/ETHPy150Open twitterdev/twitter-for-bigquery/libs/gnippy/config.py/get_default_config_file_path