Permalink
Browse files

Changed setup to copy media files to the django-cms installation dire…

…ctory.

Signed-off-by: Patrick Lauber <patrick.lauber@divio.ch>
  • Loading branch information...
1 parent 9d5bd02 commit aada1b493325ab9de2cc50bb1d45cdc1cc4d5592 Stavros Korokithakis committed with digi604 Sep 23, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 setup.py
View
8 setup.py
@@ -1,4 +1,11 @@
from setuptools import setup, find_packages
+import os
+
+media_files = []
+
+for dirpath, dirnames, filenames in os.walk('cms/media'):
+ media_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
+
setup(
name='django-cms',
version='2.0.0.alpha',
@@ -10,6 +17,7 @@
'mptt': 'mptt',
'publisher': 'publisher',
},
+ data_files = media_files,
package_data = {
'cms': [
'templates/admin/cms/mail/*.html',

0 comments on commit aada1b4

Please sign in to comment.