def fetch_location(response: Response, path: str) -> str:
    """

    :param path:
    :return:
    """

    if not path or not path.startswith('@'):
        return None

    parts = path.lstrip(':').split(':', 1)
    segments = parts[-1].replace('\\', '/').strip('/').split('/')

    if parts[0] == '@examples':
        return environ.paths.package('resources', 'examples', *segments)
    if parts[0] == '@home':
        return environ.paths.clean(os.path.join('~', 'cauldron', *segments))

    environ.configs.load()
    aliases = environ.configs.fetch('folder_aliases', {})
    key = parts[0][1:]
    if key in aliases:
        return environ.paths.clean(os.path.join(
            aliases[key]['path'],
            *segments
        ))

    return None
def fetch_location ( response : Response , path : str ) -> str : if not path or not path . startswith ( '@' ) : return None parts = path . lstrip ( ':' ) . split ( ':' , 1 ) segments = parts [ - 1 ] . replace ( '\\' , '/' ) . strip ( '/' ) . split ( '/' ) if parts [ 0 ] == '@examples' : return environ . paths . package ( 'resources' , 'examples' , * segments ) if parts [ 0 ] == '@home' : return environ . paths . clean ( os . path . join ( '~' , 'cauldron' , * segments ) ) environ . configs . load ( ) aliases = environ . configs . fetch ( 'folder_aliases' , { } ) key = parts [ 0 ] [ 1 : ] if key in aliases : return environ . paths . clean ( os . path . join ( aliases [ key ] [ 'path' ] , * segments ) ) return None
:param path:
    :return: