def get_app_package_name(config):
    """ Get package name of app that is running.

    Name is either name of app that included nefertari, or
    current package name (which is 'nefertari').
    """
    if config.includepath:
        return config.includepath[0].split(':')[0]
    return config.package_name