2022-02-03 13:10:29 +01:00
|
|
|
import os
|
2022-01-17 23:56:27 +01:00
|
|
|
|
|
|
|
# CONFIG
|
2022-02-03 13:10:29 +01:00
|
|
|
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())
|
|
|
|
|
|
|
|
|
2022-02-03 13:10:29 +01:00
|
|
|
|
|
|
|
conf_files = os.listdir( CONFDIR )
|
|
|
|
keyword = 'your_keyword'
|
|
|
|
for file in conf_files:
|
|
|
|
if os.path.isfile(file):
|
|
|
|
if file.endwith('.tsv'):
|
|
|
|
eprint( 'Conf file: ', file )
|
|
|
|
f = open(os.path.join(CONFDIR,file),'r')
|
|
|
|
eprint( file[:-4], f.split() )
|
|
|
|
f.close()
|