diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-04-26 19:06:14 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-04-30 12:41:08 +0200 |
commit | c0029ee04ea4fa270c89ace65ac5e6c616a297b9 (patch) | |
tree | 70e578f17acf0fb183e80918955ba552db07c5dd /setup.py | |
parent | 3bb499e4f0d62a4523169f69e2206b44f1d779d2 (diff) |
setup.py: install config files too
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |