Fixed description support
This commit is contained in:
parent
b29c35de23
commit
11f36102db
|
|
@ -24,7 +24,7 @@ def list_profiles(base='./profiles/'):
|
||||||
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()
|
||||||
if first_line[0] == '#':
|
if first_line[0] == '#':
|
||||||
description = first_line.strip()
|
description = first_line[1:].strip()
|
||||||
|
|
||||||
cache[file] = {'path' : os.path.join(root, file), 'description' : description}
|
cache[file] = {'path' : os.path.join(root, file), 'description' : description}
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue