def _install_from_path(path):
 if (not os.path.exists(path)):
  msg = 'File not found: {0}'.format(path)
  raise SaltInvocationError(msg)
 cmd = 'installer -pkg "{0}" -target /'.format(path)
 return salt.utils.mac_utils.execute_return_success(cmd)

def _install_from_path ( path ) : if ( not os . path . exists ( path ) ) : msg = 'File not found: {0}' . format ( path ) raise SaltInvocationError ( msg ) cmd = 'installer -pkg "{0}" -target /' . format ( path ) return salt . utils . mac_utils . execute_return_success ( cmd )
internal function to install a package from the given path .