ó
„™xTc           @   s­   d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m Z d  d l	 Z
 d  d l Z d  d l Z d „  Z e d k r© e e j d ƒ n  d S(   iÿÿÿÿ(   t   divisionN(   t   is_same_filec         C   s  t  |  ƒ d k s t ‚ t j j d d d d d t j j ƒ } d t j j	 k rd t
 t j j	 d <n  x¡ d d	 g D]“ } t j j | | ƒ } t j j | ƒ sµ t d
 | | g ƒ rÑ t j j d | d | ƒ n  x0 t t t t t g D] } | j d | g ƒ qç Wqq Wd GHd  S(   Ni    t   module_namet   iotbxt   paths   examples/pdb_truncate_to_alat   testt   sets   crambin_pieces.pdbs   resname_mix.pdbt
   file_namest   sourcet   targett   argst   OK(   t   lent   AssertionErrort   libtbxt   envt
   under_distt   osR   t   isdirt   forward_compatibilityt   __builtins__t   listt   joint   isfileR   t   utilst	   copy_filet   v0_getting_startedt   v1_loop_over_atomst	   v2_simplet	   v3_bettert   v4_with_bells_and_whistlest   run(   R
   t   tutorial_dirt	   file_namet	   file_patht   vx(    (    sT   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/examples/pdb_truncate_to_ala/tst.pyR      s&    t   __main__i   (   t
   __future__R    R   R   R   R   R   t   libtbx.pathR   t   libtbx.load_envR   t   sysR   R   t   __name__t   argv(    (    (    sT   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/examples/pdb_truncate_to_ala/tst.pyt   <module>   s   	