summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-26 19:06:14 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-30 12:41:08 +0200
commitc0029ee04ea4fa270c89ace65ac5e6c616a297b9 (patch)
tree70e578f17acf0fb183e80918955ba552db07c5dd /setup.py
parent3bb499e4f0d62a4523169f69e2206b44f1d779d2 (diff)
setup.py: install config files too
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index ddb2c720..3b8754e5 100644
--- a/setup.py
+++ b/setup.py
@@ -32,8 +32,11 @@ def datafiles(prefix):
for dirname, extension in [('recipes', '.recipe'), ('packages', '.package')]:
for f in parse_dir(dirname, extension):
files.append((os.path.join(datadir, dirname), [f]))
- for dirname in ['data', 'config']:
- for f in parse_dir('data'):
+ for dirname in ['config']:
+ for f in parse_dir(dirname):
+ files.append((os.path.join(datadir, dirname), [f]))
+ for dirname in ['data']:
+ for f in parse_dir(dirname):
dirpath = os.path.split(f.split('/', 1)[1])[0]
files.append((os.path.join(datadir, dirpath), [f]))
return files