def _package(package, subdirs=None):
 dirs = package.split(u'.')
 app_dir = os.path.join(u'share', u'git-cola', u'lib', *dirs)
 if subdirs:
  dirs = (list(subdirs) + dirs)
 src_dir = os.path.join(*dirs)
 return (app_dir, glob(os.path.join(src_dir, u'*.py')))

def _package ( package , subdirs = None ) : dirs = package . split ( u'.' ) app_dir = os . path . join ( u'share' , u'git-cola' , u'lib' , * dirs ) if subdirs : dirs = ( list ( subdirs ) + dirs ) src_dir = os . path . join ( * dirs ) return ( app_dir , glob ( os . path . join ( src_dir , u'*.py' ) ) )
collect python files for a given python "package" name .