Ver código fonte

Always overwrite static files.

Just in case they have been updated.
Heikki Hokkanen 17 anos atrás
pai
commit
80fad3b7b4
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2
    3
      gitstats

+ 2
- 3
gitstats Ver arquivo

@@ -438,9 +438,8 @@ class HTMLReportCreator(ReportCreator):
438 438
 
439 439
 		# copy static files if they do not exist
440 440
 		for file in ('gitstats.css', 'sortable.js', 'arrow-up.gif', 'arrow-down.gif', 'arrow-none.gif'):
441
-			if not os.path.exists(path + '/' + file):
442
-				basedir = os.path.dirname(os.path.abspath(__file__))
443
-				shutil.copyfile(basedir + '/' + file, path + '/' + file)
441
+			basedir = os.path.dirname(os.path.abspath(__file__))
442
+			shutil.copyfile(basedir + '/' + file, path + '/' + file)
444 443
 
445 444
 		f = open(path + "/index.html", 'w')
446 445
 		format = '%Y-%m-%d %H:%m:%S'