def whole_trees(package_dir, paths):
def whole_tree(prefix, path):
files = []
def whole_trees(package_dir, paths):
def whole_tree(prefix, path):
files = []
new_path = os.path.join(path, f)
if os.path.isdir(os.path.join(prefix, new_path)):
files.extend(whole_tree(prefix, new_path))
new_path = os.path.join(path, f)
if os.path.isdir(os.path.join(prefix, new_path)):
files.extend(whole_tree(prefix, new_path))
author='Marek Stępniowski',
author_email='marek@stepniowski.com',
maintainer='Radek Czajka',
author='Marek Stępniowski',
author_email='marek@stepniowski.com',
maintainer='Radek Czajka',
- package_data={'sponsors': whole_trees('sponsors',
- ['templates', 'locale', 'static'])},
+ package_data={'sponsors': whole_trees('sponsors', ['templates', 'locale', 'static'])},
license='LICENSE',
description='Manage your lists of sponsors with Django admin.',
long_description=open('README.md').read(),
license='LICENSE',
description='Manage your lists of sponsors with Django admin.',
long_description=open('README.md').read(),