diff --git a/bin/build-stats b/bin/build-stats index b815764..bb543c9 100755 --- a/bin/build-stats +++ b/bin/build-stats @@ -7,15 +7,15 @@ import teamanalysis.git import teamanalysis.repos import webbrowser -def _git_stats(abspath): - output = subprocess.check_output(['git_stats', 'generate', '--path=' + abspath, '--out-path=' + os.path.join(abspath, 'git_stats')]) +def _git_stats(repo): + abspath = '/Users/eliribble/src/{}/'.format(repo) + output = subprocess.check_output(['git_stats', 'generate', '--path=' + abspath, '--out-path=' + os.path.join('./git_stats', repo)]) return output def main(): for repo in teamanalysis.repos.REPOSITORIES: print(repo) - abspath = '/Users/eliribble/src/{}/'.format(repo) - #output = _git_stats(abspath) + output = _git_stats(repo) template_loader = jinja2.FileSystemLoader(searchpath=os.path.abspath('./templates/')) template_environment = jinja2.Environment(loader=template_loader) diff --git a/templates/git_stats.html b/templates/git_stats.html index c26dbd4..d754940 100644 --- a/templates/git_stats.html +++ b/templates/git_stats.html @@ -2,7 +2,7 @@