From: Konstantin Stepanov Date: Wed, 22 Dec 2010 20:38:32 +0000 (+0200) Subject: fixed undefined property auto args related error X-Git-Tag: v1.5.1~1 X-Git-Url: http://vcs.maemo.org/git/?p=dbuscron;a=commitdiff_plain;h=857f39adeb266f0605fc9e94fe91355a1165ca2e fixed undefined property auto args related error --- diff --git a/dbuscron/command.py b/dbuscron/command.py index e25c5f6..a0480e6 100644 --- a/dbuscron/command.py +++ b/dbuscron/command.py @@ -8,6 +8,7 @@ log = Logger(__name__) class Command(object): def __init__(self, cmd): self.__value = cmd + self.__auto_args = False if self.is_shell_cmd: self.__file = os.environ.get('SHELL', '/bin/sh') self.__args = [self.__file, '-c', self.__value] @@ -18,8 +19,6 @@ class Command(object): and self.__file.startswith('!'): self.__file = self.__file.lstrip('!') self.__auto_args = True - else: - self.__auto_args = False def __call__(self, bus, message, environ): args_list = map(dbus_to_str, message.get_args_list())