From 2031dc5be9f4124130f4c2dac687d4770e5563df Mon Sep 17 00:00:00 2001 From: Huluti Date: Sun, 4 Dec 2016 20:28:41 +0100 Subject: [PATCH] Simplify path vars --- src/manjaro-hello.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index c1d0f6c..d38ab09 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -11,8 +11,9 @@ from gi.repository import Gtk class ManjaroHello(Gtk.Window): def __init__(self): - self.preferences_path = "{}/.config/manjaro-hello.json".format(os.path.expanduser("~")) - self.autostart_path = os.path.expanduser("{}/.config/autostart/manjaro-hello.desktop".format(os.path.expanduser("~"))) + config_path = "{}/.config/".format(os.path.expanduser("~")) + self.preferences_path = config_path + "manjaro-hello.json" + self.autostart_path = config_path + "autostart/manjaro-hello.desktop" self.icon_path = "manjaro-hello.png" self.language = locale.getlocale()[0][:2] @@ -147,8 +148,8 @@ def get_lsb_information(): arg = arg[1:-1] if arg: lsb[var] = arg - except OSError as msg: - print(msg) + except OSError as e: + print(e) return lsb