Update setup.py
This commit is contained in:
parent
485a67e9d3
commit
fef3aa3a58
10
setup.py
10
setup.py
@ -6,11 +6,10 @@ from setuptools import setup
|
|||||||
fenrirVersion = '1.5'
|
fenrirVersion = '1.5'
|
||||||
|
|
||||||
data_files = []
|
data_files = []
|
||||||
directories = glob.glob('config/*/*')
|
directories = glob.glob('config/*')
|
||||||
for directory in directories:
|
for directory in directories:
|
||||||
files = glob.glob(directory+'/*')
|
files = glob.glob(directory+'/*')
|
||||||
print(directory)
|
destDir = ''
|
||||||
destDir = '/etc/fenrir'
|
|
||||||
if 'config/punctuation' in directory :
|
if 'config/punctuation' in directory :
|
||||||
destDir = '/etc/fenrir/punctuation'
|
destDir = '/etc/fenrir/punctuation'
|
||||||
elif 'config/keyboard' in directory:
|
elif 'config/keyboard' in directory:
|
||||||
@ -26,7 +25,8 @@ for directory in directories:
|
|||||||
destDir = '/usr/share/sounds/fenrir/default'
|
destDir = '/usr/share/sounds/fenrir/default'
|
||||||
elif "template" in directory:
|
elif "template" in directory:
|
||||||
destDir = '/usr/share/sounds/fenrir/template'
|
destDir = '/usr/share/sounds/fenrir/template'
|
||||||
data_files.append((destDir, files))
|
if destDir != '':
|
||||||
|
data_files.append((destDir, files))
|
||||||
|
|
||||||
def read(fname):
|
def read(fname):
|
||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||||
|
Loading…
Reference in New Issue
Block a user