pyt/path.py
def walk(self, basedir):
        """Walk all the directories of basedir except hidden directories

        :param basedir: string, the directory to walk
        :returns: generator, same as os.walk
        """
        system_d = SitePackagesDir()
        filter_system_d = system_d and os.path.commonprefix([system_d, basedir]) != system_d

        for root, dirs, files in os.walk(basedir, topdown=True):
            # ignore dot directories and private directories (start with underscore)
            dirs[:] = [d for d in dirs if d[0] != '.' and d[0] != "_"]

            if filter_system_d:
                dirs[:] = [d for d in dirs if not d.startswith(system_d)]

            yield root, dirs, files
def walk(self, basedir):
        system_d = SitePackagesDir()
        filter_system_d = system_d and os.path.commonprefix([system_d, basedir]) != system_d

        for root, dirs, files in os.walk(basedir, topdown=True):
            # ignore dot directories and private directories (start with underscore)
            dirs[:] = [d for d in dirs if d[0] != '.' and d[0] != "_"]

            if filter_system_d:
                dirs[:] = [d for d in dirs if not d.startswith(system_d)]

            yield root, dirs, files
def walk ( self , basedir ) : system_d = SitePackagesDir ( ) filter_system_d = system_d and os . path . commonprefix ( [ system_d , basedir ] ) != system_d for root , dirs , files in os . walk ( basedir , topdown = True ) : # ignore dot directories and private directories (start with underscore) dirs [ : ] = [ d for d in dirs if d [ 0 ] != '.' and d [ 0 ] != "_" ] if filter_system_d : dirs [ : ] = [ d for d in dirs if not d . startswith ( system_d ) ] yield root , dirs , files
Walk all the directories of basedir except hidden directories

        :param basedir: string, the directory to walk
        :returns: generator, same as os.walk
Walk all the directories of basedir except hidden directories