a
    1$e                     @   s|   d Z ddlZddlZddlZddlZddlmZmZ ejddej	dddej
d	d
dddejejedd ZdS )z
$ fio insp    N)optionswith_context_envz(Open a dataset and start an interpreter.)
short_helpsrc_pathT)requiredz	--ipythoninterpreteripythonzUse IPython as interpreter.)
flag_valuehelpc              	   C   s   dt jdtttjdd f }t j|fi |b}t }|sRt	j
||d n8|dkrzddl}||j_|jg |d ntd	|W d   n1 s0    Y  dS )
z4Open a collection within an interactive interpreter.zoFiona %s Interactive Inspector (Python %s)
Type "src.schema", "next(src)", or "help(src)" for more information..N   )localr   r   )argvZuser_nsz5Interpreter {} is unsupported or missing dependencies)fiona__version__joinmapstrsysversion_infoopenlocalscodeZinteractIPythonZInteractiveShellZbanner1Zstart_ipythonclickClickExceptionformat)ctxr   r   Zopen_optionsZbannersrcscoper    r    J/var/www/html/django/DPS/env/lib/python3.9/site-packages/fiona/fio/insp.pyinsp   s"    r"   )__doc__r   r   r   r   Z	fiona.fior   r   commandargumentoptionZopen_optpass_contextr"   r    r    r    r!   <module>   s   
