Merge pull request #14 from darko-poljak/report-globbing
Add report project name globbing.
This commit is contained in:
commit
a6d48be4aa
1 changed files with 5 additions and 1 deletions
|
@ -30,6 +30,7 @@ import os
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
import ctt
|
import ctt
|
||||||
import ctt.listprojects
|
import ctt.listprojects
|
||||||
|
@ -63,7 +64,10 @@ class Report(object):
|
||||||
projects=ctt.listprojects.ListProjects.list_projects()
|
projects=ctt.listprojects.ListProjects.list_projects()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
projects=args.project
|
projects = []
|
||||||
|
for x in args.project:
|
||||||
|
fnames = glob.glob(os.path.join(ctt.ctt_dir(), x))
|
||||||
|
projects.extend(fnames)
|
||||||
|
|
||||||
total_time = 0
|
total_time = 0
|
||||||
for project in projects:
|
for project in projects:
|
||||||
|
|
Loading…
Reference in a new issue