HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //usr/lib/python3/dist-packages/twisted/python/__pycache__/shortcut.cpython-310.pyc
o

�b��@s:dZddlZddlZddlmZdd�ZGdd�d�ZdS)z5
Creation of  Windows shortcuts.

Requires win32all.
�N)�shellcCst�}|�|�|S)zg
    Open an existing shortcut for reading.

    @return: The shortcut object
    @rtype: Shortcut
    )�Shortcut�load)�filename�sc�r�9/usr/lib/python3/dist-packages/twisted/python/shortcut.py�opens
r	c@s>eZdZdZ						ddd�Zdd�Zdd	�Zd
d�ZdS)
rz
    A shortcut on Win32.
    NrcCs�t�tjdtjtj�|_|dur|�tj	�
|��|dur"|�|�|dur+|�|�|dur8|�
tj	�
|��|durH|�tj	�
|�|�dSdS)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�iconidxrrr�__init__"s"�

�zShortcut.__init__cCs |j�tj��tj�|��dS)z1
        Read a shortcut file from disk.
        N)r�QueryInterfacer
�IID_IPersistFile�Loadrrr�rrrrrrEs
�z
Shortcut.loadcCs"|j�tj��tj�|�d�dS)z^
        Write the shortcut to disk.

        The file should be named something.lnk.
        rN)rrr
r �Saverrrr"rrr�saveMs�z
Shortcut.savecCst|j|�S)N)�getattrr)r�namerrr�__getattr__WszShortcut.__getattr__)NNNNNr)�__name__�
__module__�__qualname__�__doc__rrr$r'rrrrrs
�#
r)r+rr
�win32com.shellrr	rrrrr�<module>s