Lib.Krakatau.script_util.pyc Maven / Gradle / Ivy
?
?HRc @ s= d d l Z d d l Z d Z d ? Z d ? Z d ? Z d S( i????Ns? Krakatau Copyright (C) 2012-13 Robert Grosse
This program is provided as open source under the GNU General Public License.
See LICENSE.TXT for more details.
c
C s? | j d ? r[ t j | d ? ?5 } g | j ? D] } | j | ? r1 | ^ q1 } Wd QXn? | r? t j j | ? sy t ? g } xe t j | ? D]J \ } } } | g | D]* } | j | ? r? t j j | | ? ^ q? 7} q? Wn | g S| S( Ns .jart r(
t endswitht zipfilet ZipFilet namelistt ost patht isdirt AssertionErrort walkt join(
t targett recursivet prefixt archivet namet targetst roott dirst filest fname( ( s; /home/alex/projects/github/krakatau/Krakatau/script_util.pyt findFiles s 7Bc C s8 | j d ? r | d } n | j d d ? j d d ? S( Ns .classi????s \t /t .( R t replace( R ( ( s; /home/alex/projects/github/krakatau/Krakatau/script_util.pyt normalizeClassname s
c C s? | } t j j | ? rC t j j | | j d ? ? } | | 7} n t j j | ? } | r~ t j j | ? r~ t j | ? n t | d ? ? } | j | ? Wd QX| S( NR t wb(
R R R R
t splitt dirnamet existst makedirst opent write( t base_pathR t suffixt datat outt dirpatht f( ( s; /home/alex/projects/github/krakatau/Krakatau/script_util.pyt writeFile s
( t os.pathR R t copyrightR R R' ( ( ( s; /home/alex/projects/github/krakatau/Krakatau/script_util.pyt s
© 2015 - 2025 Weber Informatics LLC | Privacy Policy