Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Iterate filenames under a certain directoy.

        def iter_dir_filenames(dirname, ignore_hidden_file=True):
    """Iterate filenames under a certain directoy."""
    for root, dirnames, basenames in os.walk(dirname):
        for basename in basenames:
            if ignore_hidden_file and basename.startswith('.'):
            yield os.path.join(root, basename)

src/p/y/pylibtracer-0.9.1/pylibtracer/libtracer.py   pylibtracer(Download)
        if os.path.isdir(path):
            for filename in utils.iter_dir_filenames(path):
                # FIXME (olliwang): should support all accepted extensions
                if not filename.endswith('.py'):
            if os.path.dirname(package_dir) not in self.sys_path:
            for filename in utils.iter_dir_filenames(package_dir):
                root, ext = os.path.splitext(filename)
                # Keep only source module if possible