From 45872ecb1db0336531ea27605a7fd978583a46da Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Fri, 13 Dec 2013 18:16:02 +0100 Subject: add the filename as the module_name property to the Module class --- py3status/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py3status/__init__.py b/py3status/__init__.py index 5d36b2e..0a182dd 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -320,6 +320,7 @@ class Module(Thread): self.lock = lock self.methods = {} self.module_class = None + self.module_name = f_name # self.load_methods(include_path, f_name) @@ -389,7 +390,7 @@ class Module(Thread): syslog( LOG_INFO, 'module {} click_events={} has_kill={} methods={}'.format( - f_name, + self.module_name, self.click_events, self.has_kill, self.methods.keys() -- cgit v1.3