ó
‚™xTc           @   sq   d  d l  m Z d  d l m Z d  d l Z d  d l Z e j Z d „  Z e	 d k rm e d e j
 d ƒ n  d S(   iÿÿÿÿ(   t   division(   t   xrayNc         C   s¢   x› |  D]“ } y t  j j d | d t ƒ } Wn0 t k
 rB ‚  n t k
 r^ d | GHq n Xt j t j | ƒ ƒ \ } } | j	 d t
 | d d ƒ ƒ q Wd  S(   Nt   filenamet   strictly_shelxls   %s is not a .ins or a .res filet   outs   .cift   w(   R   t	   structuret
   from_shelxt   Falset   KeyboardInterruptt	   Exceptiont   opt   splitextt   basenamet   as_cif_simplet   open(   t   argst   ft   xst   rt   _(    (    sM   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/command_line/shelx.as_cif.pyt   run   s    	t   __main__R   i   (   t
   __future__R    t   cctbxR   t   syst   ost   pathR   R   t   __name__t   argv(    (    (    sM   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/command_line/shelx.as_cif.pyt   <module>   s   		