diff options
| author | Thomas <thomas@thomasme.es> | 2015-02-22 20:31:42 +0000 |
|---|---|---|
| committer | Thomas <thomas@thomasme.es> | 2015-02-22 20:31:42 +0000 |
| commit | 52ba20d9188241a3e3666247d6865b71daebbce9 (patch) | |
| tree | d1271e534edcc3a67bf197c9c241b95a9c82ed86 /py3status/modules | |
| parent | a40285518711aefd89691d4fbc3a7166b0462851 (diff) | |
added a small debugging output when directly calling battery_level.py
Diffstat (limited to 'py3status/modules')
| -rw-r--r-- | py3status/modules/battery_level.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/py3status/modules/battery_level.py b/py3status/modules/battery_level.py index 5ca9ea8..3aa13e0 100644 --- a/py3status/modules/battery_level.py +++ b/py3status/modules/battery_level.py @@ -112,3 +112,10 @@ class Py3status: stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w') ) + +if __name__ == "__main__": + from time import sleep + x = Py3status() + while True: + print(x.battery_level([], {})) + sleep(1) |
