diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-15 01:15:13 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-15 01:15:13 +0100 |
commit | 9d6c80bac902cb5c32146e2a891aa5e1317e144e (patch) | |
tree | b7f0ee6d2fe101cb3f3fe999165987b6ccf9e756 /setup.py | |
parent | c7ede2f1a564fa180e44d341f0019da443e9a005 (diff) |
rearchitecture the data files
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 26 |
1 files changed, 18 insertions, 8 deletions
@@ -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', |