fix listprojects
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
parent
d0cf603675
commit
bf0e47cef8
2 changed files with 6 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
import ctt
|
import ctt
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -40,5 +41,8 @@ class ListProjects(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def list_projects():
|
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
|
yield project
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- 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.
|
# This file is part of ctt.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue