ó
áxTc           @   sU   d  d l  m Z d  d l Z d  d l Z d   Z e d k rQ e e j d  n  d S(   i˙˙˙˙(   t   divisionNc         C   sí   t  j j } | j d  d k } d j t j j   j    d } xŁ |  D] } d j | j    } | j |  d k  | k r qJ n  d | GHd d GHt j	 j
 |  d d GHd | GH| rÉ d	 } n d
 } t d | | f   qJ Wd  S(   Nt   does_noti    s   
s   BEGIN OF INPUT (%s)t   viO   t   ^s   END OF INPUT (%s)t   foundt   nots   String %s in input: %s(   t   libtbxt   envt   dispatcher_namet   findt   joint   syst   stdint   readt
   splitlinest   stdoutt   writet   AssertionError(   t   argst   dnR   t   inputt   argt   s(    (    s_   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/libtbx/command_line/assert_stdin_contains_strings.pyt   run   s     " 				 	t   __main__i   (   t
   __future__R    t   libtbx.load_envR   R   R   t   __name__t   argv(    (    (    s_   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/libtbx/command_line/assert_stdin_contains_strings.pyt   <module>   s
   	