|
|
@@ -342,7 +342,7 @@ class HTMLReportCreator(ReportCreator):
|
|
342
|
342
|
|
|
343
|
343
|
# TODO copy the CSS if it does not exist
|
|
344
|
344
|
if not os.path.exists(path + '/gitstats.css'):
|
|
345
|
|
- #shutil.copyfile('')
|
|
|
345
|
+ shutil.copyfile('gitstats.css', path + '/gitstats.css')
|
|
346
|
346
|
pass
|
|
347
|
347
|
|
|
348
|
348
|
f = open(path + "/index.html", 'w')
|
|
|
@@ -779,6 +779,7 @@ if len(sys.argv) < 3:
|
|
779
|
779
|
|
|
780
|
780
|
gitpath = sys.argv[1]
|
|
781
|
781
|
outputpath = os.path.abspath(sys.argv[2])
|
|
|
782
|
+rundir = os.getcwd()
|
|
782
|
783
|
|
|
783
|
784
|
try:
|
|
784
|
785
|
os.makedirs(outputpath)
|
|
|
@@ -797,6 +798,8 @@ print 'Collecting data...'
|
|
797
|
798
|
data = GitDataCollector()
|
|
798
|
799
|
data.collect(gitpath)
|
|
799
|
800
|
|
|
|
801
|
+os.chdir(rundir)
|
|
|
802
|
+
|
|
800
|
803
|
print 'Generating report...'
|
|
801
|
804
|
report = HTMLReportCreator()
|
|
802
|
805
|
report.create(data, outputpath)
|