From 60964880943883de132e248b0deb3aaf8e5e67b5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 20 Aug 2010 23:16:39 +0200 Subject: some win preparation --- pyLoadCore.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index e1c7331a7..e102d2a3e 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -147,17 +147,19 @@ class Core(object): def start(self): """ starts the fun :D """ - try: signal.signal(signal.SIGQUIT, self.quit) - except: pass - if not exists("pyload.conf"): from module.setup import Setup print "This is your first start, running configuration assistent now." self.config = ConfigParser() s = Setup(pypath, self.config) - s.start() + res = s.start() + if not res: + remove("pyload.conf") exit() + try: signal.signal(signal.SIGQUIT, self.quit) + except: pass + self.config = ConfigParser() translation = gettext.translation("pyLoad", self.path("locale"), languages=["en", self.config['general']['language']]) -- cgit v1.2.3