Don't use self for a var
parent
69d406b497
commit
1aae96bfc2
|
@ -18,16 +18,16 @@ class ManjaroHello():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# App vars
|
# App vars
|
||||||
self.app = "manjaro-hello"
|
self.app = "manjaro-hello"
|
||||||
self.dev = False
|
dev = False
|
||||||
for arg in sys.argv:
|
for arg in sys.argv:
|
||||||
if arg == "--dev":
|
if arg == "--dev":
|
||||||
self.dev = True
|
dev = True
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
self.home_path = os.path.expanduser("~")
|
self.home_path = os.path.expanduser("~")
|
||||||
self.config_path = self.home_path + "/.config/"
|
self.config_path = self.home_path + "/.config/"
|
||||||
|
|
||||||
if not self.dev:
|
if not dev:
|
||||||
self.data_path = "/usr/share/" + self.app + "/data/"
|
self.data_path = "/usr/share/" + self.app + "/data/"
|
||||||
self.locale_path = "/usr/share/locale/"
|
self.locale_path = "/usr/share/locale/"
|
||||||
ui_path = "/usr/share/" + self.app + "/ui/"
|
ui_path = "/usr/share/" + self.app + "/ui/"
|
||||||
|
|
Loading…
Reference in New Issue