Add debug when loading env config file

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-11-07 01:39:04 -04:00
parent ee426282db
commit 89bdfc5975

View File

@@ -258,10 +258,12 @@ extlinks = {
def _load_env_file(filename='../config.env'):
print('Loading env file: {}'.format(filename))
result = []
with open(filename) as file_object:
for line in file_object:
if not line.startswith('#'):
print('Found entry: {}'.format(line))
key, value = line.strip().split('=')
result.append(('|{}|'.format(key), value))