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"
# 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/"