File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/win_shortcut.cpython-310.pyc
Back
o ;j � @ sZ d Z ddlZddlZddlZddlmZ dZdd� Z dd d�Z dS ) a State module for creating shortcuts on Windows. Handles file shortcuts (`.lnk`) and url shortcuts (`.url`). Allows for the configuration of icons and hot keys on file shortcuts. Changing the icon and hot keys are unsupported for url shortcuts. .. versionadded:: 3005 � N)�CommandExecutionErrorZshortcutc C s$ t jj�� sdS t�dd�sdS tS )z' Only works on Windows systems )Fz1Shortcut state only available on Windows systems.�shortcut.createN)Fz,Shortcut state requires the shortcut module.)�salt�utils�platformZ is_windows�__salt__�get�__virtualname__� r r �L/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/win_shortcut.py�__virtual__ s r � �NormalFc C s | i dg d�} |||t jj�|�|t jj�| �t jj�|�|t jj�|�d� }ztd | �}t jj�||�}|s?d| d<