소스 검색

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 년 전
부모
커밋
fe94d55836
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      gitstats

+ 1
- 1
gitstats 파일 보기

@@ -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):