Change to selects corrects paths
parent
a56cb13ae3
commit
d36efc291d
|
@ -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/"
|
||||||
|
|
Loading…
Reference in New Issue