Change to selects corrects paths
This commit is contained in:
parent
a56cb13ae3
commit
d36efc291d
@ -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/"
|
||||
|
Loading…
Reference in New Issue
Block a user