Put all the stats output local, not in the repos
Because it's annoying to dirty all my repos
This commit is contained in:
parent
5b73d23bc0
commit
530d8afa6d
|
@ -7,15 +7,15 @@ import teamanalysis.git
|
||||||
import teamanalysis.repos
|
import teamanalysis.repos
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
def _git_stats(abspath):
|
def _git_stats(repo):
|
||||||
output = subprocess.check_output(['git_stats', 'generate', '--path=' + abspath, '--out-path=' + os.path.join(abspath, 'git_stats')])
|
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
|
return output
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
for repo in teamanalysis.repos.REPOSITORIES:
|
for repo in teamanalysis.repos.REPOSITORIES:
|
||||||
print(repo)
|
print(repo)
|
||||||
abspath = '/Users/eliribble/src/{}/'.format(repo)
|
output = _git_stats(repo)
|
||||||
#output = _git_stats(abspath)
|
|
||||||
|
|
||||||
template_loader = jinja2.FileSystemLoader(searchpath=os.path.abspath('./templates/'))
|
template_loader = jinja2.FileSystemLoader(searchpath=os.path.abspath('./templates/'))
|
||||||
template_environment = jinja2.Environment(loader=template_loader)
|
template_environment = jinja2.Environment(loader=template_loader)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<body>
|
<body>
|
||||||
<ul>
|
<ul>
|
||||||
{% for repo in repos %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue