ó
�™xTc           @   sq   d  d l  m Z d  d l m Z d  d l Z d  d l Z d  d l Z d „  Z e	 d k rm e e j
 d ƒ n  d S(   iÿÿÿÿ(   t   division(   t   standard_geometry_cifNc         C   s”   t  |  ƒ d k s t ‚ t j j d d d t j j d t ƒ } t	 j
 d | ƒ } | d } | j d k sp t ‚ t  | j ƒ d k s‹ t ‚ d	 GHd  S(
   Ni    t   relative_paths-   phenix_regression/wwpdb/standard_geometry.cift   testt   optionalt	   file_namet   LEUi   t   OK(   t   lent   AssertionErrort   libtbxt   envt   find_in_repositoriest   ost   patht   isfilet   FalseR   t   process_chem_compst   comp_idt   atoms(   t   argst   std_geo_cift	   std_compst	   chem_comp(    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/wwpdb/tst_standard_geometry_cif.pyt   exercise   s    	
t   __main__i   (   t
   __future__R    t   mmtbx.wwpdbR   t   libtbx.load_envR
   t   sysR   R   t   __name__t   argv(    (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/wwpdb/tst_standard_geometry_cif.pyt   <module>   s   	