ó
ÈMc           @   sF   d  d l  m  Z  d  d l Z d  d l m Z d Z d   Z e   d S(   i˙˙˙˙(   t   ConfigParserN(   t   sysconfs   /etc/landscape/client.confc          C   s´   t  j d t  r° t j j t  r° t   }  |  j t  xs d
 D]h } d | } |  j	 d |  rA | t j
 k rA |  j d |  } t  j | j d d  | d	 t qA qA Wn  d  S(   Ns   use-landscape-proxiest   httpt   httpst   ftps   %s_proxyt   clientt   _t   -t   weak(   R   R   R   (   R   t   gett   Falset   ost   patht   isfilet   CLIENT_CONF_PATHR    t   readt
   has_optiont   environt   sett   replacet   True(   t   parsert   typet   optiont   setting(    (    s;   /usr/lib/python2.7/dist-packages/smart/plugins/landscape.pyt   run   s    	
!(   R    R   t   smartR   R   R   (    (    (    s;   /usr/lib/python2.7/dist-packages/smart/plugins/landscape.pyt   <module>   s
   	