Fixed description support

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

View File

@ -23,11 +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' : ''}
cache[file] = {'path' : os.path.join(root, file), 'description' : description}
break
return cache