%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/mac_assistive.pyo |
� ���^c @@ sx d Z d d l m Z m Z m Z d d l Z d d l Z d d l m Z e j e � Z d Z d � Z e d � Z d S( u% Allows you to manage assistive access on macOS minions with 10.9+ ================================================================= Install, enable and disable assistive access on macOS minions .. code-block:: yaml /usr/bin/osacript: assistive.installed: - enabled: True i ( t absolute_importt unicode_literalst print_functionN( t LooseVersionu assistivec C@ s6 t j j j � r2 t t d � t d � k r2 t St S( u Only work on Mac OS u osreleaseu 10.9( t saltt utilst platformt is_darwint _LooseVersiont __grains__t Truet False( ( ( s= /usr/lib/python2.7/site-packages/salt/states/mac_assistive.pyt __virtual__ s c C@ s� i | d 6t d 6d d 6i d 6} t d | � } | r� t d | � } | | k r{ t d | | � d j | � | d <q� d | d <n$ t d | | � d j | � | d <| S( u� Make sure that we have the given bundle ID or path to command installed in the assistive access panel. name The bundle ID or path to command enable Should assistive access be enabled on this application? u nameu resultu u commentu changesu assistive.installedu assistive.enabledu assistive.enableu Updated enable to {0}u Already in the correct stateu assistive.installu- Installed {0} into the assistive access panel( R t __salt__t format( t namet enabledt rett is_installedt is_enabled( ( s= /usr/lib/python2.7/site-packages/salt/states/mac_assistive.pyt installed&