§
    ÷¢±j¤Q  ã                   ó’  —  G d „ de ¦  «        ZddlZd„ Zd„ Zd„ Zd„ Zd„ Zd	„ Zd
„ Z	d„ Z
d„ Zd„ Zd„ Zd=d„Zd„ Zd=d„Zd„ Zd=d„Zd=d„Zd„ Zd„ Zdej        d         z  ZdZdZedk    �rZ eej        ¦  «        dk    rej        d         dv r ee¦  «         dS  eej        ¦  «        dk    sej        d         d         dv�r6ej        dd…         Zej        dd…         D ]Ze                      e¦  «         Œe                      d¦  «         e                      d¦  «         e                      d ¦  «         e                      d!¦  «         e                      d"¦  «         e                      d#¦  «         d$ej!        v re                      d%¦  «         ne                      d&¦  «          ed'¦  «          ee¦  «          ee¦  «          ed(ed)¦  «          ed*¦  «         ddl"Z" e"j#        ¦   «          dS g Z$ddl%Z% e%j%        ej        dd…         d+g d,¢¦  «        \  Z&Z'e'D ]Ze$                      e¦  «         Œe&D �]„\  Z(Z)e(d-k    r ee¦  «         e(d.k    r ee¦  «         e(d/k    r ed0¦  «          ee$¦  «         e(d1k    r ed2e)¦  «          ee)de$¦  «         e(d3v r ddl*Z* ed4e)¦  «          e*j+        e)¦  «         e(d5k    r8ddl*Z*d6 ,                    e$¦  «        Z ed7e)d8e¦  «          e*j-        e)e¦  «         e(d9k    r·e$s ed:¦  «        ‚ddl*Z* e*j.        d¦  «         /                    d6¦  «        Z0 ee0¦  «        Z1e$D ]Z2e2e0vre0                      e2¦  «         Œ ee0¦  «        e1k    r@ ed; ee0¦  «        e1z
  z  ¦  «          e*j-        dd6 ,                    e0¦  «        ¦  «         �Œw ed<¦  «         �Œ„dS dS )>c                   ó   — e Zd ZdS )ÚerrorN)Ú__name__Ú
__module__Ú__qualname__© ó    úbC:\Users\johnn\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32/scripts/regsetup.pyr   r      s   € € € € € Ø€Dr   r   é    Nc                 ó>   — ddl }|j                             | ¦  «        S )z/Check if a file exists.  Returns true or false.r
   N)ÚosÚpathÚexists)Úfnamer   s     r	   Ú
FileExistsr      s   € à€I€I€IàŒ7�>Š>˜%Ñ Ô Ð r   c                 ó”   — ddl }|€d}t          |j                             |j                             | |¦  «        |¦  «        ¦  «        S )z~Given a path, a ni package name, and possibly a known file name in
    the root of the package, see if this path is good.
    r
   Nú.)r   r   r   Újoin)r   ÚpackageNameÚknownFileNamer   s       r	   ÚIsPackageDirr      sF   € ð €I€I€IàÐØˆÝ�b”g—l’l 2¤7§<¢<°°kÑ#BÔ#BÀMÑRÔRÑSÔSÐSr   c                  ó.   — ddl } d| j        j        v rdndS )zoReturn "_d" if we're running a debug version.

    This is to be used within DLL names when locating them.
    r
   Nz_d.pydÚ_dÚ )Úimportlib.machineryÚ	machineryÚEXTENSION_SUFFIXES)Ú	importlibs    r	   ÚIsDebugr      s*   € ð
 ÐÐÐà˜yÔ2ÔEÐEÐEˆ4ˆ4È2ÐMr   c                 óð   — ddl }ddl} |j        | ¦  «        }|rt          || |¦  «        r|dfS |D ]3}t          || |¦  «        r |j                             |¦  «        }||fc S Œ4t          d| z  ¦  «        ‚)zÀFind a package.

    Given a ni style package name, check the package is registered.

    First place looked is the registry for an existing entry.  Then
    the searchPaths are searched.
    r
   Nz!The package %s can not be located)r   ÚregutilÚGetRegisteredNamedPathr   r   Úabspathr   )r   r   ÚsearchPathsr   r    ÚpathLookÚrets          r	   ÚFindPackagePathr&   '   s«   € ð €I€I€Ià€N€N€Nà-ˆwÔ-¨kÑ:Ô:€HØð •L ¨;¸ÑFÔFð Ø˜ˆ~Ðàð ð ˆÝ˜ +¨}Ñ=Ô=ð 	à”'—/’/ (Ñ+Ô+ˆCØ˜�8ˆOˆOˆOð	õ Ð3°kÑAÑ
BÔ
BÐBr   c                 ó\  — dd l }dd l}dd l}	 |                     |j        dd|j        ¦  «        }	 	 |                     ||¦  «        d         }t          |j         	                    || ¦  «        ¦  «        r.|j         
                    |¦  «        |                     ¦   «          S n# |j        $ r Y nw xY w|                     ¦   «          n# |                     ¦   «          w xY wn# |j        $ r Y nw xY w|D ]¥}t          |j         	                    || ¦  «        ¦  «        r|j         
                    |¦  «        c S |j         	                    |d¦  «        }t          |j         	                    || ¦  «        ¦  «        r|j         
                    |¦  «        c S Œ¦t          d| z  ¦  «        ‚)Nr
   zSoftware\Microsoft\Windows\HelpÚHelpz#The help file %s can not be located)r   Úwin32apiÚwin32conÚ
RegOpenKeyÚHKEY_LOCAL_MACHINEÚKEY_ALL_ACCESSÚRegQueryValueExr   r   r   r"   ÚCloser   )	ÚhelpFileÚhelpDescr#   r   r)   r*   Úkeyr   r$   s	            r	   ÚFindHelpPathr3   ?   sÎ  € à€I€I€Ià€O€O€OØ€O€O€OðØ×!Ò!ØÔ'Ø0ØØÔ#ñ	
ô 
ˆð	ðØ×/Ò/°°XÑ>Ô>¸qÔA�Ý˜bœgŸlšl¨4°Ñ:Ô:Ñ;Ô;ð 1Øœ7Ÿ?š?¨4Ñ0Ô0ð �IŠI‰KŒKˆKˆKð1øà”>ð ð ð Ø�ðøøøð �IŠI‰KŒKˆKˆKøˆC�IŠI‰KŒKˆKˆKøøøˆKøØŒ>ð ð ð Øˆðøøøàð -ð -ˆÝ�b”g—l’l 8¨XÑ6Ô6Ñ7Ô7ð 	-Ø”7—?’? 8Ñ,Ô,Ð,Ð,Ð,Ø”7—<’< ¨&Ñ1Ô1ˆÝ�b”g—l’l 8¨XÑ6Ô6Ñ7Ô7ð 	-Ø”7—?’? 8Ñ,Ô,Ð,Ð,Ð,ð	-å
Ð5¸Ñ@Ñ
AÔ
AÐAsM   Ž"C$ ²AB% ÂC$ Â$C
 Â%
B2Â/C
 Â1B2Â2C
 Â5C$ Ã
C Ã C$ Ã$
C1Ã0C1c                 ó€  — ddl }ddl} |j        | ¦  «        }|r|                     d¦  «        d         }|r*t	          |j                             ||¦  «        ¦  «        rdS |D ]F}t	          |j                             ||¦  «        ¦  «        r|j                             |¦  «        c S ŒGt          d|› d| › �¦  «        ‚)z€Find an application.

    First place looked is the registry for an existing entry.  Then
    the searchPaths are searched.
    r
   Nú;z	The file z$ can not be located for application )	r   r    r!   Úsplitr   r   r   r"   r   )ÚappNamer   r#   r   r    ÚregPathr$   s          r	   ÚFindAppPathr9   a   sç   € ð €I€I€Ià€N€N€Nà,ˆgÔ,¨WÑ5Ô5€GØð )Ø—=’= Ñ%Ô% aÔ(ˆØð •:˜bœgŸlšl¨8°]ÑCÔCÑDÔDð Øˆtàð -ð -ˆÝ�b”g—l’l 8¨]Ñ;Ô;Ñ<Ô<ð 	-à”7—?’? 8Ñ,Ô,Ð,Ð,Ð,ð	-õ ØP�MÐPÐPÀwÐPÐPñô ð r   c                 ó  — ddl }ddl}ddl}ddl}|€| }|j                             |j        |¦  «        }t          |¦  «        sMd|j        v r#|j                             |j        dd|¦  «        }n!|j                             |j        d|¦  «        }t          |¦  «        st          ||¦  «        }d}	 | 
                     |j        ¦   «          |j        ¦   «         dz   | z   ¦  «        }	||	k    }n# |j        $ r Y nw xY w||fS )zùFind an exe.

    Returns the full path to the .exe, and a boolean indicating if the current
    registered entry is OK.  We don't trust the already registered version even
    if it exists - it may be wrong (ie, for a different Python version)
    r
   Nú64 bitÚPCBuildÚamd64ú\)r   Úsysr    r)   r   r   Úprefixr   ÚversionÚLocateFileNameÚRegQueryValueÚ
GetRootKeyÚGetAppPathsKeyr   )
ÚexeAliasÚpossibleRealNamesr#   r   r?   r    r)   ÚfoundÚregistered_okÚ
registereds
             r	   ÚFindPythonExerK   {   sB  € ð €I€I€IØ€J€J€Jà€N€N€NØ€O€O€OàÐ Ø$ÐàŒG�LŠL˜œÐ%6Ñ7Ô7€EÝ�eÑÔð KØ�s”{Ð"Ð"Ø”G—L’L ¤¨Y¸ÐARÑSÔSˆEˆEà”G—L’L ¤¨YÐ8IÑJÔJˆEÝ�eÑÔð ?ÝÐ0°+Ñ>Ô>ˆà€MðØ×+Ò+ØˆGÔÑ Ô Ð"8 'Ô"8Ñ":Ô":¸TÑ"AÀHÑ"Lñ
ô 
ˆ
ð  Ò+ˆˆøØŒ>ð ð ð Øˆðøøøà�-ÐÐs   Â3<C0 Ã0
C=Ã<C=c                 ó\   — 	 |                       d¦  «         d| z  S # t          $ r | cY S w xY w)z6Given a filename, return a quoted version if necessaryú z"%s")ÚindexÚ
ValueError)r   s    r	   ÚQuotedFileNamerP   Ÿ   sG   € ðØ�Š�CÑÔÐØ˜‰~ÐøÝð ð ð àˆˆˆðøøøs   ‚ œ+ª+c                 óž  — ddl }|                      d¦  «        }|D ]D}|D ];}|j                             ||¦  «        }|j                             |¦  «        r nd}Œ<|r nÕŒE|d         }	 ddl}ddl}n # t          $ r t          d|z  ¦  «        ‚w xY w|j	        }	|j         
                    |¦  «        d         }
d|
› d|
› d�}|                     dd||	|d¦  «        }|                     d	|z   ¦  «         |                     ¦   «         |j        k    rt          d
¦  «        ‚|                     ¦   «         }|j                             |¦  «        S )zÔLocate a file name, anywhere on the search path.

    If the file can not be located, prompt the user to find it for us
    (using a common OpenFile dialog)

    Raises KeyboardInterrupt if the user cancels.
    r
   Nr5   z�Need to locate the file %s, but the win32ui module is not available
Please run the program again, passing as a parameter the path to this file.é   zFiles of requested type (*z)|*z||zLocate zUser cancelled the process)r   r6   r   r   r   r*   Úwin32uiÚImportErrorr   ÚOFN_FILEMUSTEXISTÚsplitextÚCreateFileDialogÚSetOFNTitleÚDoModalÚIDOKÚKeyboardInterruptÚGetPathNamer"   )ÚfileNamesStringr#   r   Ú	fileNamesr   ÚfileNameÚretPathr*   rS   ÚflagsÚextÚfilterÚdlgs                r	   rB   rB   ª   s�  € ð €I€I€Ià×%Ò% cÑ*Ô*€IØð $ð $ˆØ!ð 	ð 	ˆHØ”g—l’l 4¨Ñ2Ô2ˆGØŒw�~Š~˜gÑ&Ô&ð Ø�à��Øð 	ØˆEð	ð ˜Q”<ˆð	ØˆOˆOˆOØˆNˆNˆNˆNøÝð 	ð 	ð 	Ýð cØññô ð ð	øøøð Ô*ˆØŒg×Ò˜xÑ(Ô(¨Ô+ˆØ=¨cÐ=Ð=°cÐ=Ð=Ð=ˆØ×&Ò& q¨$°¸%ÀÈÑNÔNˆØ�Š˜	 HÑ,Ñ-Ô-Ð-Ø�;Š;‰=Œ=˜HœMÒ)Ð)Ý#Ð$@ÑAÔAÐAØ—/’/Ñ#Ô#ˆØŒ7�?Š?˜7Ñ#Ô#Ð#s   Á*A3 Á3Bc                 ó–   — ddl }|j                             |j                             t	          | |¦  «        ¦  «        d         ¦  «        S )z2Like LocateFileName, but returns a directory only.r
   N)r   r   r"   r6   rB   )r_   r#   r   s      r	   Ú
LocatePathrf   Ô   s=   € à€I€I€IàŒ7�?Š?˜2œ7Ÿ=š=­¸À+Ñ)NÔ)NÑOÔOÐPQÔRÑSÔSÐSr   c                 óF   — 	 t          | |¦  «        S # t          $ r Y dS w xY w)z6Like LocatePath, but returns None if the user cancels.N)rf   r[   ©r_   r#   s     r	   ÚLocateOptionalPathri   Û   s9   € ðÝ˜( KÑ0Ô0Ð0øÝð ð ð Øˆtˆtðøøøó   ‚ ’
 Ÿ c                 óF   — 	 t          | |¦  «        S # t          $ r Y dS w xY w)z:Like LocateFileName, but returns None if the user cancels.N)rB   r[   rh   s     r	   ÚLocateOptionalFileNamerl   ã   s9   € ðÝ˜h¨Ñ4Ô4Ð4øÝð ð ð Øˆtˆtðøøørj   c                 ó’  — ddl }ddl} |j        d¦  «        }|r|                     d¦  «        }n|j                             d¦  «        g}d}|D ].}t          |j                             |d¦  «        ¦  «        r|} nŒ/|€| �t          d| ¦  «        }|€t          d¦  «        ‚d}t          ¦   «         }|D ]1}t          |j                             |d|z  ¦  «        ¦  «        r|} nŒ2|€| �t          d|z  | ¦  «        }|€t          d¦  «        ‚|j                             |j                             |d	¦  «        ¦  «        }	|	||gfS )
z¡Locate and validate the core Python directories.  Returns a list
    of paths that should be used as the core (ie, un-named) portion of
    the Python path.
    r
   Nr5   r   zos.pyz-The core Python library could not be located.zunicodedata%s.pydz*The core Python path could not be located.ú..)r   r    r!   r6   r   r"   r   r   rf   r   r   )
r#   r   r    ÚcurrentPathÚpresearchPathsÚlibPathr   ÚcorePathÚsuffixÚinstallPaths
             r	   ÚLocatePythonCoreru   ë   s‰  € ð
 €I€I€Ià€N€N€Nà0�'Ô0°Ñ6Ô6€KØð 0Ø$×*Ò*¨3Ñ/Ô/ˆˆàœ'Ÿ/š/¨#Ñ.Ô.Ð/ˆØ€GØð ð ˆÝ�b”g—l’l 4¨Ñ1Ô1Ñ2Ô2ð 	ØˆGØˆEð	ð €˜;Ð2Ý˜W kÑ2Ô2ˆØ€ÝÐCÑDÔDÐDà€HÝ‰YŒY€FØð ð ˆÝ�b”g—l’l 4Ð)<¸vÑ)EÑFÔFÑGÔGð 	ØˆHØˆEð	ð Ð˜KÐ3ÝÐ1°FÑ:¸KÑHÔHˆØÐÝÐ@ÑAÔAÐAà”'—/’/ "¤'§,¢,¨w¸Ñ"=Ô"=Ñ>Ô>€KØ˜ (Ð+Ð+Ð+r   c                 ó–  — ddl }| st          d¦  «        ‚ |j        d¦  «                             d¦  «        }|s|}|p| }	 t	          | ||¦  «        \  }}|�||v rd} |j        ||¦  «         |S # t          $ rM}t          d| › d|› �¦  «         t          d¦  «         t          d	¦  «         t          d
¦  «         Y d}~dS d}~ww xY w)af  Find and Register a package.

    Assumes the core registry setup correctly.

    In addition, if the location located by the package is already
    in the **core** path, then an entry is registered, but no path.
    (no other paths are checked, as the application whose path was used
    may later be uninstalled.  This should not happen with the core)
    r
   NzA package name must be suppliedr5   r   z*** The z# package could not be registered - zH*** Please ensure you have passed the correct paths on the command line.zL*** - For packages, you should pass a path to the packages parent directory,z-*** - and not the package directory itself...)r    r   r!   r6   r&   ÚRegisterNamedPathÚprint)	r   Ú	knownFiler#   ÚregistryAppNamer    Ú	corePathsr$   ÚpathAddÚdetailss	            r	   ÚFindRegisterPackager~     s3  € ð €N€N€Nàð 7ÝÐ5Ñ6Ô6Ð6Ø.�Ô.¨tÑ4Ô4×:Ò:¸3Ñ?Ô?€IØð  ØˆØ%Ð4¨€Oð?Ý+¨K¸ÀKÑPÔPÑˆ�'ØÐØ˜)Ð#Ð#Ø�Ø%ˆGÔ% o°wÑ?Ô?Ð?ØˆøÝð ?ð ?ð ?ÝÐR˜ÐRÐRÈÐRÐRÑSÔSÐSÝØVñ	
ô 	
ð 	
õ 	ØZñ	
ô 	
ð 	
õ 	Ð=Ñ>Ô>Ð>Ð>Ð>Ð>Ð>Ð>Ð>øøøøð?øøøs   Á.A1 Á1
CÁ;ACÃCc                 ó8  — ddl }t          |t          ¦  «        r|g}g }	 |D ]*}t          | ||¦  «        }|r|                     |¦  «         Œ+n(# t
          $ r}t          d|¦  «         Y d}~dS d}~ww xY w |j        | d                     |¦  «        ¦  «         dS )zRFind and Register a package.

    Assumes the core registry setup correctly.

    r
   Nú*** r5   )	r    Ú
isinstanceÚstrr9   Úappendr   rx   rw   r   )r7   Ú
knownFilesr#   r    Úpathsry   r$   r}   s           r	   ÚFindRegisterAppr†   7  sÕ   € ð €N€N€Nå�*�cÑ"Ô"ð "Ø �\ˆ
Ø€EðØ#ð 	'ð 	'ˆIÝ" 7¨I°{ÑCÔCˆHØð 'Ø—’˜XÑ&Ô&Ð&øð	'øõ ð ð ð Ýˆf�gÑÔÐØˆˆˆˆˆøøøøðøøøð €GÔ˜g s§x¢x°¡¤Ñ7Ô7Ð7Ð7Ð7s    -A Á
A3ÁA.Á.A3c                 ó\   — ddl }t          | ||¦  «        \  }}|s |j        || ¦  «         |S )zvFind and Register a Python exe (not necessarily *the* python.exe)

    Assumes the core registry setup correctly.
    r
   N)r    rK   ÚRegisterPythonExe)rF   r#   ÚactualFileNamesr    r   Úoks         r	   ÚFindRegisterPythonExer‹   O  sD   € ð €N€N€Nå˜h¨¸ÑEÔE�I€Eˆ2Øð 3Ø!ˆÔ! %¨Ñ2Ô2Ð2Ø€Lr   c                 ó¨   — dd l }	 t          | ||¦  «        }n(# t          $ r}t          d|¦  «         Y d }~d S d }~ww xY w |j        | ||¦  «         d S )Nr
   r€   )r    r3   r   rx   ÚRegisterHelpFile)r0   r#   r1   r    r$   r}   s         r	   ÚFindRegisterHelpFilerŽ   ]  s~   € Ø€N€N€NðÝ ¨(°KÑ@Ô@ˆˆøÝð ð ð Ýˆf�gÑÔÐØˆˆˆˆˆøøøøðøøøð €GÔ˜X x°Ñ:Ô:Ð:Ð:Ð:s   † ˜
=¢8¸=c           	      óì  — ddl }| D ]}|j                             |¦  «         Œddl}ddl}ddl}ddl}t          | ¦  «        \  }}t          |¦  «          |j	        dd 
                    |¦  «        ¦  «         |                      |j        ¦   «          |j        ¦   «         ¦  «        }		 |                     |	d|j        |¦  «         |                     |	¦  «         n# |                     |	¦  «         w xY w|j                             |j                             |j        ¦  «        d         ¦  «        dz   |j                             |j                             t)          d|j        ¦  «        ¦  «        d         ¦  «        z   }
|j         
                    |j        d¦  «        }d|j        v r|j         
                    |d¦  «        }|j                             |¦  «        r |j	        d|¦  «         dS dS )	a	  Setup the core Python information in the registry.

    This function makes no assumptions about the current state of sys.path.

    After this function has completed, you should have access to the standard
    Python library, and the standard Win32 extensions
    r
   Nr5   ÚInstallPathzwin32con.py;win32con.pycr<   r;   r=   )r?   r   rƒ   r   r    r)   r*   ru   rx   rw   r   ÚRegCreateKeyrD   ÚBuildDefaultPythonKeyÚRegSetValueÚREG_SZÚRegCloseKeyr"   r6   Ú__file__rB   r@   rA   Úisdir)r#   r?   r   r   r    r)   r*   rt   r{   ÚhKeyÚ
win32pathsÚchecks               r	   Ú	SetupCorer›   i  s  € ð €J€J€Jàð ð ˆØŒ�Š˜ÑÔÐÐà€I€I€Ià€N€N€NØ€O€O€OØ€O€O€Oå-¨kÑ:Ô:Ñ€K�å	ˆ)ÑÔÐØ€GÔ˜d C§H¢H¨YÑ$7Ô$7Ñ8Ô8Ð8ð × Ò Ð!3 Ô!3Ñ!5Ô!5Ð7T°wÔ7TÑ7VÔ7VÑWÔW€Dð#à×Ò˜T =°(´/À;ÑOÔOÐOà×Ò˜TÑ"Ô"Ð"Ð"øˆ×Ò˜TÑ"Ô"Ð"Ð"øøøð 	Œ�Š˜œŸš hÔ&7Ñ8Ô8¸Ô;Ñ<Ô<Ø
ñ	à
Œ'�/Š/ØŒG�MŠM�.Ð)CÀSÄXÑNÔNÑOÔOÐPQÔRñ
ô 
ñ	
ð ð ŒG�LŠL˜œ YÑ/Ô/€EØ�3”;ÐÐØ”—’˜U GÑ,Ô,ˆØ	„w‡}‚}�UÑÔð 4Ø!ˆÔ! )¨UÑ3Ô3Ð3Ð3Ð3ð4ð 4s   Â*C ÃC4c                 óB  — ddl }ddl}t          ¦   «         }t          d|z  | ¦  «        } |j        dd|j        ¦  «          |j        dt          |¦  «        dz   d¦  «          |j        d	d
|z  |j        ¦  «         t          d| d¦  «         t          d| d¦  «         dS )z¿Registers key parts of the Python installation with the Windows Shell.

    Assumes a valid, minimal Python installation exists
    (ie, SetupCore() has been previously successfully run)
    r
   NzPython%s.exez.pyzPython.FileÚOpenz "%1" %*z&RunzPython.File\DefaultIconz%s,0z
Python.hlpzMain Python DocumentationzActivePython.chm)	r    r*   r   r‹   ÚSetRegistryDefaultValueÚHKEY_CLASSES_ROOTÚRegisterShellCommandrP   rŽ   )r#   r    r*   rs   ÚexePaths        r	   ÚRegisterShellInfor¢   ž  sÆ   € ð €N€N€NØ€O€O€Oå‰YŒY€Få# N°VÑ$;¸[ÑIÔI€GØ#€GÔ# E¨=¸(Ô:TÑUÔUÐUØ €GÔ  ­¸Ñ)@Ô)@À:Ñ)MÈvÑVÔVÐVØ#€GÔ#Ø" F¨WÑ$4°hÔ6Pñô ð õ ˜ {Ð4OÑPÔPÐPÝÐ+¨[Ð:UÑVÔVÐVÐVÐVr   a¢  regsetup.py - Setup/maintain the registry for Python apps.

Run without options, (but possibly search paths) to repair a totally broken
python registry setup.  This should allow other options to work.

Usage:   %s [options ...] paths ...
-p packageName  -- Find and register a package.  Looks in the paths for
                   a sub-directory with the name of the package, and
                   adds a path entry for the package.
-a appName      -- Unconditionally add an application name to the path.
                   A new path entry is create with the app name, and the
                   paths specified are added to the registry.
-c              -- Add the specified paths to the core Pythonpath.
                   If a path appears on the core path, and a package also
                   needs that same path, the package will not bother
                   registering it.  Therefore, By adding paths to the
                   core path, you can avoid packages re-registering the same path.
-m filename     -- Find and register the specific file name as a module.
                   Do not include a path on the filename!
--shell         -- Register everything with the Windows shell.
--upackage name -- Unregister the package
--uapp name     -- Unregister the app (identical to --upackage)
--umodule name  -- Unregister the module

--description   -- Print a description of the usage.
--examples      -- Print examples of usage.
aÕ  If no options are processed, the program attempts to validate and set
the standard Python path to the point where the standard library is
available.  This can be handy if you move Python to a new drive/sub-directory,
in which case most of the options would fail (as they need at least string.py,
os.py etc to function.)
Running without options should repair Python well enough to run with
the other options.

paths are search paths that the program will use to seek out a file.
For example, when registering the core Python, you may wish to
provide paths to non-standard places to look for the Python help files,
library files, etc.

See also the "regcheck.py" utility which will check and dump the contents
of the registry.
aŠ  
Examples:
"regsetup c:\weird\spot\1 c:\weird\spot\2"
Attempts to setup the core Python.  Looks in some standard places,
as well as the 2 weird spots to locate the core Python files (eg, Python.exe,
pythonXX.dll, the standard library and Win32 Extensions).

"regsetup -a myappname . .\subdir"
Registers a new Pythonpath entry named myappname, with "C:\I\AM\HERE" and
"C:\I\AM\HERE\subdir" added to the path (ie, all args are converted to
absolute paths)

"regsetup -c c:\my\python\files"
Unconditionally add "c:\my\python\files" to the 'core' Python path.

"regsetup -m some.pyd \windows\system"
Register the module some.pyd in \windows\system as a registered
module.  This will allow some.pyd to be imported, even though the
windows system directory is not (usually!) on the Python Path.

"regsetup --umodule some"
Unregister the module "some".  This means normal import rules then apply
for that module.
Ú__main__rR   )z/?z-?z-helpz-h)ú/ú-z..\Buildz..\Librn   z..\..z	..\..\libz..\buildr;   z..\..\pcbuild\amd64z..\..\pcbuildz*Attempting to setup/repair the Python corezPyWin32.chmzPythonwin Referencez0Registration complete - checking the registry...zp:a:m:c)Úshellz	upackage=zuapp=zumodule=ÚdescriptionÚexamplesz--descriptionz
--examplesz--shellzRegistering the Python core.z-pzRegistering package)z
--upackagez--uappz!Unregistering application/packagez-ar5   zRegistering applicationzto pathz-cz3-c option must provide at least one additional pathzRegistering %d new core pathsz+All specified paths are already registered.)N)3Ú	Exceptionr   r?   r   r   r   r&   r3   r9   rK   rP   rB   rf   ri   rl   ru   r~   r†   r‹   rŽ   r›   r¢   ÚargvÚusager§   r¨   r   Úlenrx   r   Ú
searchPathÚargrƒ   rA   ÚregcheckÚCheckRegistryr#   ÚgetoptÚoptsÚargsÚoÚar    ÚUnregisterNamedPathr   rw   r!   r6   ÚcurrentPathsÚoldLenÚnewPathr   r   r	   ú<module>rº      s/  ðð	ð 	ð 	ð 	ð 	ˆIñ 	ô 	ð 	ð €
€
€
ð!ð !ð !ðTð Tð TðNð Nð NðCð Cð Cð0Bð Bð BðDð ð ð4! ð ! ð ! ðHð ð ð'$ð '$ð '$ðTTð Tð Tðð ð ðð ð ð ð$,ð $,ð $,ðN"?ð "?ð "?ð "?ðJ8ð 8ð 8ð0ð ð ð ð	;ð 	;ð 	;ð 	;ð24ð 24ð 24ðjWð Wð Wð6	ð6 
„hˆq„kñ7	€ð:€ð&€ð2 ˆzÒÑØ
€sˆ3Œ8�}„}�qÒÐ˜SœX aœ[Ð,GÐGÐGØˆˆe‰ŒˆˆˆØ	ˆˆSŒX‰Œ˜!Ò	Ð	 3¤8¨A¤;¨q¤>°ZÐ#?Ñ#?à”X˜a˜a˜a”[ˆ
Ø”8˜A˜B˜B”<ð 	#ð 	#ˆCØ×Ò˜cÑ"Ô"Ð"Ð"ð 	×Ò˜+Ñ&Ô&Ð&Ø×Ò˜)Ñ$Ô$Ð$Ø×Ò˜$ÑÔÐØ×Ò˜(Ñ#Ô#Ð#ð 	×Ò˜-Ñ(Ô(Ð(Ø×Ò˜+Ñ&Ô&Ð&Ø�s”{Ð"Ð"Ø×ÒÐ6Ñ7Ô7Ð7Ð7à×ÒÐ/Ñ0Ô0Ð0àˆÐ:Ñ;Ô;Ð;àˆ	�*ÑÔÐØÐ˜*Ñ%Ô%Ð%ØÐ˜]¨JÐ8MÑNÔNÐNàˆÐ@ÑAÔAÐAØˆˆˆàˆÔÑ Ô Ð Ð Ð àˆØˆˆˆà"�V”]ØŒH�Q�R�RŒLØØRÐRÐRñ
ô 
‰
ˆˆdð
 ð 	$ð 	$ˆCØ×Ò˜sÑ#Ô#Ð#Ð#Øð &	Iñ &	I‰DˆAˆqØ�OÒ#Ð#Ø��kÑ"Ô"Ð"Ø�LÒ Ð Ø��h‘”�Ø�IŠ~ˆ~Ø�Ð4Ñ5Ô5Ð5Ø!Ð! +Ñ.Ô.Ð.Ø�DŠyˆyØ�Ð+¨QÑ/Ô/Ð/Ø#Ð# A t¨[Ñ9Ô9Ð9ØÐ,Ð,Ð,Ø���à�Ð9¸1Ñ=Ô=Ð=Ø+�Ô+¨AÑ.Ô.Ð.Ø�DŠyˆyØ���à—x’x Ñ,Ô,�Ø�Ð/°°I¸tÑDÔDÐDØ)�Ô)¨!¨TÑ2Ô2Ð2Ø�DŠyˆyØ"ð WØ˜%Ð UÑVÔVÐVØ���à=˜wÔ=¸dÑCÔC×IÒIÈ#ÑNÔN�Ø˜˜\Ñ*Ô*�Ø*ð 5ð 5�GØ lÐ2Ð2Ø$×+Ò+¨GÑ4Ô4Ð4øØ�3�|Ñ$Ô$¨Ò.Ð.Ø�EØ7¸3¸3¸|Ñ;LÔ;LÈvÑ;UÑVñô ð ð .�GÔ-¨d°C·H²H¸\Ñ4JÔ4JÑKÔKÐKÑKà�EÐGÑHÔHÐHùði Ðð\&	Ið &	Ir   