
    'Vh                     6    d dl Z d dlZd dlZdZ	 	 	 	 ddZd Zy)    Nz{"""DO NOT EDIT.

This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""


c                 
   |rt        d|  d|  d| d       t        j                  j                  |       st	        d|  d      t        j                  j                  t        j                  j                  | |            st	        d|  d| d      |D cg c]"  }t        j                  j                  | |      $ }}g }t        j                  t        j                  j                  | |            D ]  \  }}}	||v r|j                          |	D ]  }
|
dk(  r0|j                  dj                  |j                  d                   8|
j                  d      sJ|
j                  d	      r\|
d
d }|j                  dj                  |j                  d            dz   |z            t        j                  j                  dt        j                                g }|D ]*  }t        j                  |d      }|j                  |       , |rt        d       t!               }|D ]  }t#        |      D ]  }t%        ||      }t'        |d      s|j(                  t+        |      k7  r5t-        t/        |j0                        D cg c]  }|j3                  | dz          c}      st|j5                  |         i }|D ]  }|rt        d|j6                   d       t/        |j0                        D ]  }|j                  d      }|d   | k(  r||d   |g|dd
 z   }|d   }t        j                  j
                  |d
d  }||vrg ||<   ||   j                  ||d       t9        dt;        |d
d             D ]V  }t        j                  j
                  |d
|  }||vrg ||<   ||   j                  ||   dj                  |d
|       d       X   |rt        d       |j=                         D ]G  \  }}t        j>                  |d       g }t!               }|D ]  }d|v r9|d   }|d   }|j                  d|j@                   d|j6                   d|        @d|v sE|d   |vsM|d   }|j                  ddj                  |j                  d             d| d|        |j5                  |d           t        j                  j                  |d      }|rt        d|        tC        |      }tE        |d       5 } tF        d!j                  |      z   d!z   }| jI                  |       d
d
d
       J y
c c}w c c}w # 1 sw Y   `xY w)"a  Writes out API export `__init__.py` files.

    Given a codebase structured as such:

    ```
    package/
    ...src/
    ......__init__.py
    ......(Python files that use e.g. `@export_api(package="package", export_path="package.x.y.Z")`)
    ```

    this script generates `__init__.py` files within `package/`
    to export the public API described by the `@api_export` calls.

    Important notes:

    * Any existing `__init__.py` files in `package/` but outside of
        `package/code_directory/` may be overwritten.
    * This script must be run in an environment that includes
        all dependencies used by `package`. Make sure to install
        them before running the script.
    zGenerating files for package 'z' from sources found in '/z'.zNo directory named 'z__init__.py.z.pyz_test.pyNr   )packagez$Compiling list of symbols to export._api_export_pathz...processing symbol ''   )symbolexport_name)modulelocationzWriting out API files.T)exist_okr   r   zfrom z import z as r   z...writing w
)%printospathexists
ValueErrorjoinwalkclearappendsplitendswithsysinsertgetcwd	importlibimport_modulesetdirgetattrhasattr_api_export_symbol_ididallto_listr   
startswithadd__name__rangelenitemsmakedirs
__module__sortedopenINIT_FILE_HEADERwrite)!r   code_directoryverbosetarget_directoryexclude_directoriesdcodebase_walk_entry_pointsrootdirsfilesfnamemodule_namemodulesentry_pointmodall_symbolsr   namer   r   init_files_contentexport_pathexport_modulesr   parent_pathiintermediate_pathcontentsinit_file_linesmodules_includedsymbol_metadata	init_pathfs!                                    >/home/dcms/DCMS/lib/python3.12/site-packages/namex/generate.pygenerate_api_filesrT      s   : ,WI 6&&-Ya/?rC	

 77>>'"/y;<<77>>"'',,w?@/y.9ILMM=PQ277<<3QQ "$WWRWW\\'>%JK dE&&JJL 	E%*11#((4::c?2KL&u~~j/I#CRj*11HHTZZ_-3kA		 HHOOAryy{#G1 %%k3?s 45 %K $K 	$DVT*F6#56++r&z9  !((?(? @ OOGcM2 OOF#	$$&  *6??*;1=>"6#:#:; 	K(..s3Na G+0@0L"0"35E!FXYXZI[![(,K'',,s(;<K"4424";/{+22!+> 1c.""567 	$&GGLL.!2D$E!$,>><>&'89"#45<<"0"3$'HH^BQ-?$@			2 &' -224 h
D4(5' 	DO?*(2&}5&&F--.hv6GtD6R _,"8,4DD,X6F#**C 9:(6($vhW %(()BC	D GGLL}5	K	{+, 1)S! 	Q'$))O*DDtKHGGH	 	/_ RN~	 	s   'U
U-UU	c                 n    t        | t        t        f      rt        |       S t        | t              r| gS g S )N)
isinstancelisttuplestr)xs    rS   r*   r*      s/    !dE]#Aw	As	s
I    )srcFN )r   r   r!   r5   rT   r*   r]   r[   rS   <module>r^      s0    	 
   Pfr[   