浏览代码

Check for gnuplot before collecting data.

This should address issue:
Check for gnuplot before running - ID: 3062202
http://sourceforge.net/tracker/?func=detail&aid=3062202&group_id=203965&atid=987711

Signed-off-by: Sven van Haastregt <svhaastr@liacs.nl>
Sven van Haastregt 13 年前
父节点
当前提交
a9b3f0f4fe
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      gitstats

+ 4
- 0
gitstats 查看文件

1368
 			print 'FATAL: Output path is not a directory or does not exist'
1368
 			print 'FATAL: Output path is not a directory or does not exist'
1369
 			sys.exit(1)
1369
 			sys.exit(1)
1370
 
1370
 
1371
+		if not getgnuplotversion():
1372
+			print 'gnuplot not found'
1373
+			sys.exit(1)
1374
+
1371
 		print 'Output path: %s' % outputpath
1375
 		print 'Output path: %s' % outputpath
1372
 		cachefile = os.path.join(outputpath, 'gitstats.cache')
1376
 		cachefile = os.path.join(outputpath, 'gitstats.cache')
1373
 
1377