Browse Source

Always overwrite static files.

Just in case they have been updated.
Heikki Hokkanen 17 years ago
parent
commit
80fad3b7b4
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      gitstats

+ 2
- 3
gitstats View File

438
 
438
 
439
 		# copy static files if they do not exist
439
 		# copy static files if they do not exist
440
 		for file in ('gitstats.css', 'sortable.js', 'arrow-up.gif', 'arrow-down.gif', 'arrow-none.gif'):
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
 		f = open(path + "/index.html", 'w')
444
 		f = open(path + "/index.html", 'w')
446
 		format = '%Y-%m-%d %H:%m:%S'
445
 		format = '%Y-%m-%d %H:%m:%S'