X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=dbuscron%2Fcommand.py;fp=dbuscron%2Fcommand.py;h=a0480e6a680c8e167e610e3426f025fa3be093cc;hb=857f39adeb266f0605fc9e94fe91355a1165ca2e;hp=e25c5f6c0d070cdc4ac4a177bcb0026ec96cd4aa;hpb=f167e67177fc704d1f3e36677579141f45d57c3a;p=dbuscron 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())