golden hour
/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/decorators/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-310.pyc
21.71 KB
Del
OK
jinja.cpython-310.pyc
1.98 KB
Del
OK
path.cpython-310.pyc
1.62 KB
Del
OK
state.cpython-310.pyc
3.45 KB
Del
OK
Edit: path.cpython-310.pyc
o �xe� � @ s4 d Z ddlZddlZddlmZ dd� Zdd� ZdS )z Decorators for salt.utils.path � N)�CommandNotFoundErrorc � � fdd�}|S )z5 Decorator wrapper for salt.utils.path.which c � t �� ��� fdd��}|S )Nc s. t jj�� �d u rtd�� ����| i |��S )Nz'The '{}' binary was not found in $PATH.)�salt�utils�path�whichr �format��args�kwargs)�exe�function� �N/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/decorators/path.py�wrapped s �z'which.<locals>.wrapper.<locals>.wrapped�� functools�wraps�r r �r �r r �wrapper s zwhich.<locals>.wrapperr )r r r r r r s r c r )z9 Decorator wrapper for salt.utils.path.which_bin c r )Nc s8 t jj�� �d u rtd�dd� � D �����| i |��S )Nz2None of provided binaries({}) were found in $PATH.c S s g | ]}d � |��qS )z'{}')r )�.0r r r r � <listcomp>) s z?which_bin.<locals>.wrapper.<locals>.wrapped.<locals>.<listcomp>)r r r � which_binr r r )�exesr r r r $ s ��z+which_bin.<locals>.wrapper.<locals>.wrappedr r �r r r r # s zwhich_bin.<locals>.wrapperr )r r r r r r s r )�__doc__r Zsalt.utils.pathr Zsalt.exceptionsr r r r r r r �<module> s
Save