Commit c0029ee0 authored by Andoni Morales Alastruey's avatar Andoni Morales Alastruey
Browse files

setup.py: install config files too

parent 3bb499e4
...@@ -32,8 +32,11 @@ def datafiles(prefix): ...@@ -32,8 +32,11 @@ def datafiles(prefix):
for dirname, extension in [('recipes', '.recipe'), ('packages', '.package')]: for dirname, extension in [('recipes', '.recipe'), ('packages', '.package')]:
for f in parse_dir(dirname, extension): for f in parse_dir(dirname, extension):
files.append((os.path.join(datadir, dirname), [f])) files.append((os.path.join(datadir, dirname), [f]))
for dirname in ['data', 'config']: for dirname in ['config']:
for f in parse_dir('data'): 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] dirpath = os.path.split(f.split('/', 1)[1])[0]
files.append((os.path.join(datadir, dirpath), [f])) files.append((os.path.join(datadir, dirpath), [f]))
return files return files
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment