Show sensible-browser command when running interactively.

master
Heikki Hokkanen 2011-10-25 18:12:09 +03:00
parent 8b7ddc1f1d
commit 204d905a9f
1 changed files with 5 additions and 0 deletions

View File

@ -1372,6 +1372,11 @@ Default config values:
time_end = time.time()
exectime_internal = time_end - time_start
print 'Execution time %.5f secs, %.5f secs (%.2f %%) in external commands)' % (exectime_internal, exectime_external, (100.0 * exectime_external) / exectime_internal)
if sys.stdin.isatty():
print 'You may now run:'
print
print ' sensible-browser \'%s\'' % os.path.join(outputpath, 'index.html').replace("'", "'\\''")
print
if __name__=='__main__':
g = GitStats()