diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-20 23:16:39 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-20 23:16:39 +0200 |
commit | 60964880943883de132e248b0deb3aaf8e5e67b5 (patch) | |
tree | 7773600894666c5f8db7ec7a32ddf3f2e8b33c8c /pyLoadCore.py | |
parent | setup improvements, UnRar fix (diff) | |
download | pyload-60964880943883de132e248b0deb3aaf8e5e67b5.tar.xz |
some win preparation
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 10 |
1 files changed, 6 insertions, 4 deletions
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']]) |