summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas <thomas@thomasme.es>2015-02-22 20:31:42 +0000
committerThomas <thomas@thomasme.es>2015-02-22 20:31:42 +0000
commit52ba20d9188241a3e3666247d6865b71daebbce9 (patch)
treed1271e534edcc3a67bf197c9c241b95a9c82ed86
parenta40285518711aefd89691d4fbc3a7166b0462851 (diff)
added a small debugging output when directly calling battery_level.py
-rw-r--r--py3status/modules/battery_level.py7
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)