From 028a641c1296dd3b2a3984970204d50965edbe49 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 5 Jan 2016 08:18:07 +0200 Subject: [PATCH] Create object --- slpkg/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index 08d2f521..40126584 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -658,15 +658,16 @@ class ArgParse(object): "edit", "reset" ] + conf = Config() if (len(self.args) == 2 and self.args[0] in options and self.args[1] == command[1]): - Config().edit() + conf.edit() elif (len(self.args) == 2 and self.args[0] in options and self.args[1] == (command[0])): - Config().view() + conf.view() elif (len(self.args) == 2 and self.args[0] in options and self.args[1] == (command[2])): - Config().reset() + conf.reset() else: usage("")