Re @s&ddZedkr"e[dS)cCsddl}ddl}|jjd}|dksL|jdkrU| rUg}n|j|j}t|di}|jt |d}|jj t }x|D]}||ks| rq|j|}|dk r|j d}|dk r|j dPqy.ddl} | j d|g\} } } Wntk rSwYnX| dkrcqz| j d| | | Wd| jXPqWtdtdd|jD} t|d d}d|_x|D]}t|qW|j|7_t|d\}}d}g}x|jD]~}t|\}}||kre|dkret |}|| ks}|dkr|j|q)|j|||d 7}q)W||jdd)s z__boot.. __egginsertr)sysosenvirongetplatformsplitpathsepgetattrpathlendirname__file__ find_module load_moduleimp ImportErrorclosedictr addsitedirrappendinsert)rrrZpicZstdpathZmydirr importerloaderrstreamrdescr known_pathsoldposdZndZ insert_atnew_pathpnpr r r __boots`  "      "       r-rN)r-__name__r r r r s G