• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)
Find all files under 'dir' and return the list of full filenames
(relative to 'dir').

        def findall(dir = os.curdir):
    """Find all files under 'dir' and return the list of full filenames
    (relative to 'dir').
    """
    all_files = []
    for base, dirs, files in os.walk(dir):
        if base==os.curdir or base.startswith(os.curdir+os.sep):
            base = base[2:]
        if base:
            files = [os.path.join(base, f) for f in files]
        all_files.extend(filter(os.path.isfile, files))
    return all_files
        


src/p/y/python.ru-HEAD/setup.py   python.ru(Download)
#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
 
from setuptools import setup, find_packages, findall
 
def strip_wna(paths):
        'pythonru': 'pythonru'
    },
    package_data={
        'wna': strip_wna(findall('pythonru/static'))
    },
 
    description='python.ru source core',