Change to selects corrects paths

merge-requests/64/head
Hugo Posnic 2016-12-18 11:18:08 +01:00
parent a56cb13ae3
commit d36efc291d
1 changed files with 2 additions and 2 deletions

View File

@ -17,13 +17,13 @@ class ManjaroHello():
self.app = "manjaro-hello" self.app = "manjaro-hello"
# Path vars # Path vars
self.current_folder = os.getcwd() + "/" if os.path.basename(sys.argv[0]) == self.app:
if self.current_folder == "/usr/bin/":
self.data_path = "/usr/share/" + self.app + "/" self.data_path = "/usr/share/" + self.app + "/"
self.locale_path = "/usr/share/locale/" self.locale_path = "/usr/share/locale/"
self.ui_path = "/usr/share/" + self.app + "/" self.ui_path = "/usr/share/" + self.app + "/"
self.desktop_path = "/usr/share/applications/" + self.app + ".desktop" self.desktop_path = "/usr/share/applications/" + self.app + ".desktop"
else: else:
self.current_folder = os.getcwd() + "/"
self.data_path = "data/" self.data_path = "data/"
self.locale_path = "locale/" self.locale_path = "locale/"
self.ui_path = "ui/" self.ui_path = "ui/"