
    Og                        d dl mZ d dlmZmZmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZmZ d dlmZmZ d dlmZ erd d	lmZ dd
Z	 d	 	 	 	 	 ddZy)    )annotations)UnionIterableTYPE_CHECKING)Path)loader)DXFTag)ascii_tags_loaderbinary_tags_loader)is_dxf_fileis_binary_dxf_file)dxf_file_info)SectionDictc                B    t        |       }t        j                  |      S )N)get_tag_loaderr   load_dxf_structure)filenametaggers     `/var/www/html/public_html/myphp/venv/lib/python3.12/site-packages/ezdxf/addons/browser/loader.pyload_section_dictr      s    H%F$$V,,    c                   t        |       } t        |       r3t        | d      5 }|j                         }t	        ||      cd d d        S t        |       st        d|  d      t        |       }t        | d|j                  |      5 }t        t        |d            cd d d        S # 1 sw Y   gxY w# 1 sw Y   y xY w)	Nrb)errorszFile 'z' is not a DXF file.rt)modeencodingr   T)skip_comments)strr   openreadr   r   IOErrorr   r   listr
   )r   r   fpdatainfos        r   r   r      s     8}H(#(D! 	;R779D%d6:	; 	; x xj(<=>>"D	hTDMM&	I ?R%b=>? ?	; 	;? ?s   B(B4(B14B=N)r   Union[str, Path]returnr   )ignore)r   r'   r   r   r(   zIterable[DXFTag])
__future__r   typingr   r   r   pathlibr   ezdxf.lldxfr   ezdxf.lldxf.typesr	   ezdxf.lldxf.taggerr
   r   ezdxf.lldxf.validatorr   r   ezdxf.filemanagementr   ezdxf.eztypesr   r   r    r   r   <module>r4      sO    # 1 1   $ D A .)- /7??(+??r   