diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2013-12-13 18:16:02 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2013-12-13 18:16:02 +0100 |
| commit | 45872ecb1db0336531ea27605a7fd978583a46da (patch) | |
| tree | 377c4e5d14507ae211a5e8de1944a64f511d89d9 /py3status | |
| parent | ab05aefafdc7128c69cb4d337ecb20ce33cdcd4d (diff) | |
add the filename as the module_name property to the Module class
Diffstat (limited to 'py3status')
| -rwxr-xr-x | py3status/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |
