Bläddra i källkod

Copy configured style file to target

When generating HTML output with a custom stylesheet specified using
-c style='mystyle.css' the CSS file specified was not being copied to
the target directory.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Stephen Gordon 11 år sedan
förälder
incheckning
fe94d55836
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Visa fil

@@ -737,7 +737,7 @@ class HTMLReportCreator(ReportCreator):
737 737
 		binarypath = os.path.dirname(os.path.abspath(__file__))
738 738
 		secondarypath = os.path.join(binarypath, '..', 'share', 'gitstats')
739 739
 		basedirs = [binarypath, secondarypath, '/usr/share/gitstats']
740
-		for file in ('gitstats.css', 'sortable.js', 'arrow-up.gif', 'arrow-down.gif', 'arrow-none.gif'):
740
+		for file in (conf['style'], 'sortable.js', 'arrow-up.gif', 'arrow-down.gif', 'arrow-none.gif'):
741 741
 			for base in basedirs:
742 742
 				src = base + '/' + file
743 743
 				if os.path.exists(src):