Update setup.py

This commit is contained in:
chrys87 2017-07-25 17:50:59 +02:00 committed by GitHub
parent 485a67e9d3
commit fef3aa3a58

View File

@ -6,11 +6,10 @@ from setuptools import setup
fenrirVersion = '1.5'
data_files = []
directories = glob.glob('config/*/*')
directories = glob.glob('config/*')
for directory in directories:
files = glob.glob(directory+'/*')
print(directory)
destDir = '/etc/fenrir'
destDir = ''
if 'config/punctuation' in directory :
destDir = '/etc/fenrir/punctuation'
elif 'config/keyboard' in directory:
@ -26,6 +25,7 @@ for directory in directories:
destDir = '/usr/share/sounds/fenrir/default'
elif "template" in directory:
destDir = '/usr/share/sounds/fenrir/template'
if destDir != '':
data_files.append((destDir, files))
def read(fname):