summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py26
1 files changed, 18 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index 1ab47e3..86a1f22 100644
--- a/setup.py
+++ b/setup.py
@@ -4,14 +4,24 @@ packages = [
'CAO',
]
-data_files = [
- ('lang', [
- 'lang/en/cards/black',
- 'lang/en/cards/white',
- 'lang/fr/cards/black',
- 'lang/fr/cards/white',
- ]),
- ]
+prefix = '/'
+share_dir = 'usr/share/cao/'
+
+data_files = list()
+
+import os
+
+for n in os.walk('usr'):
+ if len(n[2]) == 0:
+ continue
+
+ files = list()
+ for f in n[2]:
+ files.append(n[0] + '/' + f)
+
+ data_files.append((prefix + n[0] + '/', files))
+
+print(data_files)
scripts = [
'cao-server',