Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/python/__pycache__/shortcut.cpython-39.pyc
Ðазад
a k�h� � @ s: d Z ddlZddlZddlmZ dd� ZG dd� d�ZdS )z5 Creation of Windows shortcuts. Requires win32all. � N)�shellc C s t � }|�| � |S )zg Open an existing shortcut for reading. @return: The shortcut object @rtype: Shortcut )�Shortcut�load)�filename�sc� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/python/shortcut.py�open s r c @ s2 e Zd ZdZddd�Zdd� Zdd � Zd d� ZdS ) r z A shortcut on Win32. Nr c C s� t �tjdt jtj�| _|dur2| �tj � |�� |durD| �|� |durV| �|� |durp| � tj � |�� |dur�| �tj � |�|� dS )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)� pythoncomZCoCreateInstancer ZCLSID_ShellLinkZCLSCTX_INPROC_SERVERZIID_IShellLink�_baseZSetPath�os�path�abspathZSetArgumentsZSetDescriptionZSetWorkingDirectoryZSetIconLocation)�selfr � arguments�descriptionZ workingdirZiconpathZiconidxr r r �__init__"