ó
ĮxTc           @   s[   d  d l  m Z d  d l m Z d  d l Z d  d l Z d   Z e d k rW e   n  d S(   i’’’’(   t   division(   t   easy_runNc          C   sę   t  j j t t j j d  d d  }  t j j d d d t  j j  } t j j d d d t  j j  } d  | | g k r d GHd  S|  d  k	 s t
  |  | | g } t j d	 |  | | f  j   } d
 | j k sŻ t
  d GHd  S(   Nt   mmtbxt   exampless   simple_command_line_cc.pyt   relative_paths    phenix_regression/pdb/1yjp_h.pdbt   tests+   phenix_regression/reflection_files/1yjp.mtzs%   phenix_regression not found, skippings   mmtbx.python "%s" "%s" "%s"s   CC(obs-calc): 0.954t   OK(   t   ost   patht   joint   abst   libtbxt   envt   module_dist_pathst   find_in_repositoriest   isfilet   Nonet   AssertionErrorR   t   fully_bufferedt   raise_if_errorst   stdout_lines(   t   script_filet   pdb_filet   mtz_filet   argst   result(    (    sK   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/regression/tst_examples.pyt   exercise   s"    	t   __main__(   t
   __future__R    R   R   t   libtbx.load_envR   R   t   __name__(    (    (    sK   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/regression/tst_examples.pyt   <module>   s   	