Added a debug

This commit is contained in:
Anton Hvornum 2020-08-04 14:56:50 +02:00
parent b2a8fd9857
commit 2af2f90280
1 changed files with 2 additions and 1 deletions

View File

@ -23,9 +23,10 @@ def list_profiles(base='./profiles/'):
description = ''
with open(os.path.join(root, file), 'r') as fh:
first_line = fh.readline()
print(first_line)
if first_line[0] == '#':
description = first_line.strip()
cache[file] = {'path' : os.path.join(root, file), 'description' : ''}
break
return cache