mò
µ7Ec           @   s  d  Z  d Z d Z y e Wn d \ Z Z n Xy d k Z d k Z d k Z d k Z d k	 Z	 e i
 i e i
 i e	 i e i    d d d   e e e i
  Z d	 k l Z l Z Wn1 y e i i d
 e  Wn e GHn X  n Xe i
 i e i d  d Z e i
 i e  d Z e i d  i e  i   Z d   Z d   Z d   Z d   Z e  d j o e Z! e i d Z" e e j oR yD e# e"  o3 e$ d e" d  o e i d Z! e i d Z" n WqäqäXn e$ d e! e e% e"   f  p d GHn d S(   sæ   template of a python script, this is the summary of the description

   and this is the rest of the description, be as verbose as you want...
   it can be many lines long, and shows up in the 'DESCRIPTION' area
   when using pydocsB  
    template - another short description here, can be same as top line
    Copyright (C) 2005  John Comeau <jc.jcomeau.com>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    s7   Not all needed libraries found, upgrade or check path: i   i    Ni   t   libt   python(   s   gpls	   jclicenses   %s
s   [0-9A-Za-z]+c          G   s   t  S(   N(   t   False(   t   whatever(    (    t   ./template.pyt
   DebugPrint4   s    c          G   sŽ   |  \ } } t |  t i j o t |  } n t t d  o | i	 |  Sn^ d } xP t d t |   D]9 } | | | } | t |  d j o | | } qo qo W| Sd S(   s   for pythons without str.joint   joint    i    i   N(   t   argst   stringt   arrayt   typet   typest
   StringTypet   evalt   hasattrt   strR   t   joinedt   ranget   lent   index(   R   R   R	   R   R
   (    (    R   R   7   s       c          G   sg   |  \ } } t |  p
 d } n t d d  o | i |  Sn  t i t i	 |   i |  Sd S(   s   for pythons without str.splitR   t   splitN(
   R   R	   t   string_to_splitR   t   NoneR   R   t   ret   compilet   escape(   R   R	   R   (    (    R   R   E   s      
c          G   sG   t  d t t t  d GHd GHt  d t t f |   d t |   GHd S(   se   main routine, name it whatever is appropriate

    call it below under "if __name__ == '__main__':"
 s   myself, command, originalselfs'   This is the template of an application.s4   Hopefully, the app you write will do more than this!s.   Running 'pytest %s.%s' should show this; args:s   args: %sN(   R   t   myselft   commandt   originalselfR   t   repr(   R   (    (    R   t   templateP   s     t   __main__s   type(%s) == types.FunctionTypei   s   %s%sR   (   i   i    (&   t   __doc__t	   Copyrightt   errormessaget   TrueR   t   syst   osR   R   t   pwdt   patht   appendR   t   getpwuidt   geteuidR   t   com.jcomeaut   gplt	   jclicenset   stderrt   writeR   t   argvR   t   splitextR   R   t   searcht   groupR   R   R   t   __name__t   functionR   R   R   t   tuple(   R"   R   R-   R   R   R   R$   R6   R   R   R   R%   R'   R   R   R   R#   R.   R   R&   (    (    R   t   ?   sB   -5					"" 