From 696793a884736c1ab846d719b94fc280ede7796f Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 2 Jan 2015 03:43:37 +0300 Subject: [PATCH] Remove inconsistent ShellPowerline.theme_option attribute Other overrides are accessed via ShellPowerline.args. --- powerline/shell.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/powerline/shell.py b/powerline/shell.py index b3e91440..d5b73c2e 100644 --- a/powerline/shell.py +++ b/powerline/shell.py @@ -8,7 +8,6 @@ from powerline.lib.dict import mergedicts class ShellPowerline(Powerline): def init(self, args, **kwargs): self.args = args - self.theme_option = args.theme_option super(ShellPowerline, self).init(args.ext[0], args.renderer_module, **kwargs) def load_main_config(self): @@ -19,8 +18,8 @@ class ShellPowerline(Powerline): def load_theme_config(self, name): r = super(ShellPowerline, self).load_theme_config(name) - if self.theme_option and name in self.theme_option: - mergedicts(r, self.theme_option[name]) + if self.args.theme_option and name in self.args.theme_option: + mergedicts(r, self.args.theme_option[name]) return r def get_config_paths(self):