|
1 | 1 | #!/usr/bin/env python3 |
2 | 2 |
|
| 3 | +""" |
| 4 | +Dool is a command line tool to monitor many aspects of your system: CPU, |
| 5 | +Memory, Network, Load Average, etc. It also includes a robust plug-in |
| 6 | +architecture to allow monitoring other system metrics. |
| 7 | +""" |
| 8 | + |
3 | 9 | ### This program is free software; you can redistribute it and/or |
4 | 10 | ### modify it under the terms of the GNU General Public License |
5 | 11 | ### as published by the Free Software Foundation; either version 2 |
@@ -36,7 +42,7 @@ import signal |
36 | 42 |
|
37 | 43 | from collections.abc import Sequence |
38 | 44 |
|
39 | | -VERSION = '1.3.2' |
| 45 | +__version__ = '1.3.2' |
40 | 46 |
|
41 | 47 | theme = { 'default': '' } |
42 | 48 |
|
@@ -380,7 +386,7 @@ class Options: |
380 | 386 | return ret |
381 | 387 |
|
382 | 388 | def version(self): |
383 | | - print('Dool %s' % VERSION) |
| 389 | + print('Dool', __version__) |
384 | 390 | print('Written by Scott Baker <scott@perturb.org>') |
385 | 391 | print('Forked from Dstat written by Dag Wieers <dag@wieers.com>') |
386 | 392 | print('Homepage at https://github.com/scottchiefbaker/dool/') |
@@ -2649,7 +2655,7 @@ def main(): |
2649 | 2655 | if op.output: |
2650 | 2656 | if not os.path.exists(op.output): |
2651 | 2657 | outputfile = open(op.output, 'w') |
2652 | | - outputfile.write('"dool %s CSV output"\n' % VERSION) |
| 2658 | + outputfile.write('"dool %s CSV output"\n' % __version__) |
2653 | 2659 | header = ('"Author:","Scott Baker"','','','','"URL:"','"https://github.com/scottchiefbaker/dool/"\n') |
2654 | 2660 | outputfile.write(char['sep'].join(header)) |
2655 | 2661 | else: |
|
0 commit comments