diff options
| author | 2015-10-18 19:39:08 +0200 | |
|---|---|---|
| committer | 2015-10-18 19:39:08 +0200 | |
| commit | 34abcd53a83582215d13056b1f23c61bc7dbf3a7 (patch) | |
| tree | 8a62481a0d2af00e85ef7d72097e763ca6de8ed4 /module/plugins/hooks/ExternalScripts.py | |
| parent | Update internals (diff) | |
| download | pyload-34abcd53a83582215d13056b1f23c61bc7dbf3a7.tar.xz | |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
| -rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index 4309bd3c9..d414d170c 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -84,7 +84,7 @@ class ExternalScripts(Addon):      def call(self, script, args=[], lock=None):          if lock is None:              lock = self.get_config('lock') -             +          try:              script = os.path.abspath(script)              args   = [script] + map(lambda arg: encode(arg) if isinstance(arg, basestring) else encode(str(arg)), args) @@ -98,12 +98,12 @@ class ExternalScripts(Addon):              self.log_error(_("Runtime error: %s") % script,                             e or _("Unknown error")) -                            +      def _call(self, folder, args=[], lock=None):          for script in self.scripts[folder]:              self.call(script, args, lock) -     -     + +      def pyload_start(self):          self._call('pyload_start') | 
