index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | archinstall/lib/profiles.py | 8 |
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index 0e76ba3d..4e14ea67 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -20,7 +20,13 @@ def list_profiles(base='./profiles/'): for root, folders, files in os.walk(base): for file in files: if os.path.splitext(file)[1] == '.py': - cache[file] = os.path.join(root, file) + description = '' + with open(os.path.join(root, file), 'r') as fh: + first_line = fh.readline() + if first_line[0] == '#': + description = first_line.strip() + + cache[file] = {'path' : os.path.join(root, file), 'description' : ''} break return cache |