Fixed description support
This commit is contained in:
parent
2af2f90280
commit
b29c35de23
|
|
@ -23,11 +23,10 @@ def list_profiles(base='./profiles/'):
|
||||||
description = ''
|
description = ''
|
||||||
with open(os.path.join(root, file), 'r') as fh:
|
with open(os.path.join(root, file), 'r') as fh:
|
||||||
first_line = fh.readline()
|
first_line = fh.readline()
|
||||||
print(first_line)
|
|
||||||
if first_line[0] == '#':
|
if first_line[0] == '#':
|
||||||
description = first_line.strip()
|
description = first_line.strip()
|
||||||
|
|
||||||
cache[file] = {'path' : os.path.join(root, file), 'description' : ''}
|
cache[file] = {'path' : os.path.join(root, file), 'description' : description}
|
||||||
break
|
break
|
||||||
return cache
|
return cache
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue