ó
    Æàhî  ã                   ó>   • S r SSKrSSKrSSKJr  S r " S S5      rg)z5
Creation of  Windows shortcuts.

Requires win32all.
é    N)Úshellc                 ó<   • [        5       nUR                  U 5        U$ )zW
Open an existing shortcut for reading.

@return: The shortcut object
@rtype: Shortcut
)ÚShortcutÚload)ÚfilenameÚscs     Ú^/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/python/shortcut.pyÚopenr
      s   € ô 
‹€BØ‡GGˆHÔØ€Ió    c                   ó@   • \ rS rSrSr      S	S jrS rS rS rSr	g)
r   é   z
A shortcut on Win32.
Nc                 ó  • [         R                  " [        R                  S[         R                  [        R
                  5      U l        Ub.  U R                  [        R                  R                  U5      5        Ub  U R                  U5        Ub  U R                  U5        Ub.  U R                  [        R                  R                  U5      5        Ub0  U R                  [        R                  R                  U5      U5        gg)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__ÚShortcut.__init__"   sÆ   € ô$ ×/Ò/Ü×!Ñ!ØÜ×*Ñ*Ü× Ñ ó	
ˆŒ
ð ÑØL‰LœŸ™Ÿ™¨Ó.Ô/ØÑ Ø×Ñ˜iÔ(ØÑ"Ø×Ñ Ô,ØÑ!Ø×$Ñ$¤R§W¡W§_¡_°ZÓ%@ÔAØÑØ× Ñ ¤§¡§¡°Ó!:¸GÕDð  r   c                 ó®   • U R                   R                  [        R                  5      R	                  [
        R                  R                  U5      5        g)z!
Read a shortcut file from disk.
N)r   ÚQueryInterfacer   ÚIID_IPersistFileÚLoadr   r   r   ©r   r   s     r	   r   ÚShortcut.loadE   s7   € ð 	
‰
×!Ñ!¤)×"<Ñ"<Ó=×BÑBÜG‰GO‰O˜HÓ%õ	
r   c                 ó°   • U R                   R                  [        R                  5      R	                  [
        R                  R                  U5      S5        g)zF
Write the shortcut to disk.

The file should be named something.lnk.
r   N)r   r&   r   r'   ÚSaver   r   r   r)   s     r	   ÚsaveÚShortcut.saveM   s9   € ð 	
‰
×!Ñ!¤)×"<Ñ"<Ó=×BÑBÜG‰GO‰O˜HÓ% qõ	
r   c                 ó.   • [        U R                  U5      $ )N)Úgetattrr   )r   Únames     r	   Ú__getattr__ÚShortcut.__getattr__W   s   € Üt—z‘z 4Ó(Ð(r   )r   )NNNNNr   )
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r#   r   r-   r2   Ú__static_attributes__© r   r	   r   r      s1   † ñð ØØØØØô!EòF
ò
õ)r   r   )r8   r   r   Úwin32com.shellr   r
   r   r:   r   r	   Ú<module>r<      s$   ðñ
ó 
ã Ý  ò	÷;)ò ;)r   