From 530d8afa6da8a42378c32e3e836fe71bb287c0d0 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 23 Jul 2015 13:25:25 -0600 Subject: [PATCH] Put all the stats output local, not in the repos Because it's annoying to dirty all my repos --- bin/build-stats | 8 ++++---- templates/git_stats.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 @@