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))
- package_data={'migdal': whole_trees('migdal',
- ['templates', 'locale'])},
+ package_data={'migdal': whole_trees('migdal', ['templates', 'locale'])},