Put all the stats output local, not in the repos

Because it's annoying to dirty all my repos
This commit is contained in:
Eli Ribble 2015-07-23 13:25:25 -06:00
parent 5b73d23bc0
commit 530d8afa6d
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -2,7 +2,7 @@
<body>
<ul>
{% for repo in repos %}
<li><a href="/Users/eliribble/src/{{ repo }}/git_stats/index.html">{{ repo }}</a></li>
<li><a href="/Users/eliribble/src/git_stats/{{ repo }}/index.html">{{ repo }}</a></li>
{% endfor %}
</ul>
</body>