Change to selects corrects paths

This commit is contained in:
Hugo Posnic 2016-12-18 11:18:08 +01:00
parent a56cb13ae3
commit d36efc291d

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