Ë
    „ÇVhî  ã                   ó>   — d Z ddlZddlZddlmZ d„ Z G d„ d«      Zy)z5
Creation of  Windows shortcuts.

Requires win32all.
é    N)Úshellc                 ó<   — t        «       }|j                  | «       |S )zg
    Open an existing shortcut for reading.

    @return: The shortcut object
    @rtype: Shortcut
    )ÚShortcutÚload)ÚfilenameÚscs     úG/home/dcms/DCMS/lib/python3.12/site-packages/twisted/python/shortcut.pyÚopenr
      s   € ô 
‹€BØ‡GGˆHÔØ€Ió    c                   ó6   — e Zd ZdZ	 	 	 	 	 	 dd„Zd„ Zd„ Zd„ Zy)r   z
    A shortcut on Win32.
    Nc                 ó  — t        j                  t        j                  dt         j                  t        j
                  «      | _        |.| j                  t        j                  j                  |«      «       || j                  |«       || j                  |«       |.| j                  t        j                  j                  |«      «       |0| j                  t        j                  j                  |«      |«       yy)a½  
        @param path: Location of the target
        @param arguments: If path points to an executable, optional arguments
                      to pass
        @param description: Human-readable description of target
        @param workingdir: Directory from which target is launched
        @param iconpath: Filename that contains an icon for the shortcut
        @param iconidx: If iconpath is set, optional index of the icon desired
        N)Ú	pythoncomÚCoCreateInstancer   ÚCLSID_ShellLinkÚCLSCTX_INPROC_SERVERÚIID_IShellLinkÚ_baseÚSetPathÚosÚpathÚabspathÚSetArgumentsÚSetDescriptionÚSetWorkingDirectoryÚSetIconLocation)Úselfr   Ú	argumentsÚdescriptionÚ
workingdirÚiconpathÚiconidxs          r	   Ú__init__zShortcut.__init__"   sÆ   € ô$ ×/Ñ/Ü×!Ñ!ØÜ×*Ñ*Ü× Ñ ó	
ˆŒ
ð ÐØL‰LœŸ™Ÿ™¨Ó.Ô/ØÐ Ø×Ñ˜iÔ(ØÐ"Ø×Ñ Ô,ØÐ!Ø×$Ñ$¤R§W¡W§_¡_°ZÓ%@ÔAØÐØ× Ñ ¤§¡§¡°Ó!:¸GÕDð  r   c                 ó®   — | j                   j                  t        j                  «      j	                  t
        j                  j                  |«      «       y)z1
        Read a shortcut file from disk.
        N)r   ÚQueryInterfacer   ÚIID_IPersistFileÚLoadr   r   r   ©r   r   s     r	   r   zShortcut.loadE   s7   € ð 	
‰
×!Ñ!¤)×"<Ñ"<Ó=×BÑBÜG‰GO‰O˜HÓ%õ	
r   c                 ó°   — | j                   j                  t        j                  «      j	                  t
        j                  j                  |«      d«       y)z^
        Write the shortcut to disk.

        The file should be named something.lnk.
        r   N)r   r$   r   r%   ÚSaver   r   r   r'   s     r	   ÚsavezShortcut.saveM   s9   € ð 	
‰
×!Ñ!¤)×"<Ñ"<Ó=×BÑBÜG‰GO‰O˜HÓ% qõ	
r   c                 ó.   — t        | j                  |«      S )N)Úgetattrr   )r   Únames     r	   Ú__getattr__zShortcut.__getattr__W   s   € Üt—z‘z 4Ó(Ð(r   )NNNNNr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r"   r   r*   r.   © r   r	   r   r      s1   „ ñð ØØØØØó!EòF
ò
ó)r   r   )r2   r   r   Úwin32com.shellr   r
   r   r3   r   r	   ú<module>r5      s$   ðñ
ó 
ã Ý  ò	÷;)ò ;)r   