a c@s\dZddlZddlZddlZddlmZdZdZdZ dZ dZ dd d Z dd d Z d dZdS)zX Re-implementation of find_module and get_frozen_object from the deprecated imp module. N)module_from_specc CsVtj||}|dur"td||jsBt|drBtjd|j}d}d}t|jt }|j dkst|rt |jtj j rt}d}d}}n|j dks|rt |jtj jrt}d}d}}n|jr:|j }tj|d }|tj jvrd nd }|tj jvrt}n&|tj jvrt}n|tj jvr t}|tthvrFt||}n d}d}}|||||ffS) z7Just like 'imp.find_module()', but with package supportN Can't find %ssubmodule_search_locationsz __init__.pyfrozenzbuilt-inrrrb) importlibutil find_spec ImportError has_locationhasattrspec_from_loaderloader isinstancetypeorigin issubclass machineryFrozenImporter PY_FROZENBuiltinImporter C_BUILTINospathsplitextSOURCE_SUFFIXES PY_SOURCEBYTECODE_SUFFIXES PY_COMPILEDEXTENSION_SUFFIXES C_EXTENSIONopen) modulepathsspeckindfileZstaticr!suffixmoder1\/workspaces/shunt/resources/test-fastapi/venv/lib/python3.9/site-packages/setuptools/_imp.py find_modulesF        r3cCs*tj||}|std||j|SNr)rrrrrget_code)r*r+r,r1r1r2get_frozen_object>s r6cCs&tj||}|std|t|Sr4)rrrrr)r*r+infor,r1r1r2 get_moduleEs r8)N)N)__doc__r importlib.utilrimportlib.machineryZ py34compatrr$r&r(rrr3r6r8r1r1r1r2s  *