#NEWLINE# def find_module( self , fullname , path = None ) : #NEWLINE# #INDENT# pkgMark = self . hashRoot ( ) #NEWLINE# if path : #NEWLINE# #INDENT# if ( ( not hasattr ( path , 'startswith' ) ) or ( not path . startswith ( pkgMark ) ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# #UNINDENT# skipCnt = ( len ( pkgMark ) if fullname . startswith ( pkgMark ) else 0 ) #NEWLINE# pathname = ospath . join ( * tuple ( fullname [ skipCnt : ] . split ( '.' ) ) ) #NEWLINE# if ( not pathname ) : #NEWLINE# #INDENT# return RootLoader ( fullname , pkgMark , pkgMark ) #NEWLINE# #UNINDENT# for Z in self . getZipDirectory ( ) : #NEWLINE# #INDENT# ( B , E ) = ospath . splitext ( Z . filename ) #NEWLINE# if ( E == '.py' ) : #NEWLINE# #INDENT# if ( B == pathname ) : #NEWLINE# #INDENT# return ModLoader ( fullname , self , pkgMark , False ) #NEWLINE# #UNINDENT# if ( B == ( pathname + '/__init__' ) ) : #NEWLINE# #INDENT# myname = ( fullname if fullname . startswith ( pkgMark ) else ( pkgMark + fullname ) ) #NEWLINE# return ModLoader ( myname , self , pkgMark , True ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return None