From 769f156ea822d4520620727dc1317224a02bdaaa Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 26 Jan 2010 21:23:16 +0100 Subject: extended script support --- pyLoadCore.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 9a9c0d6ff..7aa38b9b1 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -104,7 +104,7 @@ class Core(object): self.do_kill = False self.do_restart = False - translation = gettext.translation("pyLoad", "locale", languages=[self.config['general']['language']]) + translation = gettext.translation("pyLoad", join(self.path, "locale"), languages=[self.config['general']['language']]) translation.install(unicode=True) self.check_install("Crypto", "pycrypto to decode container files") @@ -347,10 +347,10 @@ class Core(object): self.last_update_check = time.time() def install_update(self): - if self.config['updates']['search_updates']: + if self.config['updates']['search_updates']: if self.core.config['updates']['install_updates']: - version_check = Request().load("http://get.pyload.org/get/update/%s/" % (CURRENT_VERSION, )) - else: + version_check = Request().load("http://get.pyload.org/get/update/%s/" % (CURRENT_VERSION, )) + else: version_check = Request().load("http://get.pyload.org/check/%s/" % (CURRENT_VERSION, )) if version_check == "": return False -- cgit v1.2.3