From d36efc291d1e1527b26ebf71ee13290593bc1aee Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Sun, 18 Dec 2016 11:18:08 +0100 Subject: [PATCH] Change to selects corrects paths --- src/manjaro_hello.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 54e0fe8..6db32e5 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -17,13 +17,13 @@ class ManjaroHello(): self.app = "manjaro-hello" # Path vars - self.current_folder = os.getcwd() + "/" - if self.current_folder == "/usr/bin/": + if os.path.basename(sys.argv[0]) == self.app: self.data_path = "/usr/share/" + self.app + "/" self.locale_path = "/usr/share/locale/" self.ui_path = "/usr/share/" + self.app + "/" self.desktop_path = "/usr/share/applications/" + self.app + ".desktop" else: + self.current_folder = os.getcwd() + "/" self.data_path = "data/" self.locale_path = "locale/" self.ui_path = "ui/"