diff --git a/lib/ctt/listprojects.py b/lib/ctt/listprojects.py index 06043e6..c4d0d87 100755 --- a/lib/ctt/listprojects.py +++ b/lib/ctt/listprojects.py @@ -22,6 +22,7 @@ import ctt import logging +import os log = logging.getLogger(__name__) @@ -40,5 +41,8 @@ class ListProjects(object): @staticmethod def list_projects(): - for project in ctt.list_projects(ctt.ctt_dir()): + for project in sorted(os.listdir(ctt.ctt_dir())): + if project[0] == ".": + continue + yield project diff --git a/scripts/ctt b/scripts/ctt index 612dd4d..b23dcc1 100755 --- a/scripts/ctt +++ b/scripts/ctt @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # -# 2012-2013 Nico Schottelius (nico-ctt at schottelius.org) +# 2012-2015 Nico Schottelius (nico-ctt at schottelius.org) # # This file is part of ctt. #