exportoo/config.py

24 lines
558 B
Python
Raw Normal View History

import os
2022-01-17 23:56:27 +01:00
# CONFIG
APPDIR = os.path.dirname( os.path.realpath(__file__) )
DATADIR = '%s/datas' % APPDIR
CONFDIR = '%s/config' % APPDIR
FOLDER = DATADIR
2022-01-17 23:56:27 +01:00
MODEL_IGNORE = []
with open(".modelignore", "r") as file:
for line in file:
MODEL_IGNORE.append(line.strip())
conf_files = os.listdir( CONFDIR )
keyword = 'your_keyword'
for file in conf_files:
if os.path.isfile( os.path.join(CONFDIR,file) ):
if file.endswith('.tsv'):
eprint( 'Conf file: ', file )
f = open( os.path.join(CONFDIR,file), 'r' )
eprint( file[:-4], f.split() )
f.close()