Don't use self for a var

merge-requests/64/head
Hugo Posnic 2017-05-21 17:51:08 +02:00
parent 69d406b497
commit 1aae96bfc2
1 changed files with 3 additions and 3 deletions

View File

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