projects
/
dbuscron
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f167e67
)
fixed undefined property auto args related error
author
Konstantin Stepanov
<kstep@p-nut.info>
Wed, 22 Dec 2010 20:38:32 +0000
(22:38 +0200)
committer
Konstantin Stepanov
<kstep@p-nut.info>
Wed, 22 Dec 2010 20:41:14 +0000
(22:41 +0200)
dbuscron/command.py
patch
|
blob
|
history
diff --git
a/dbuscron/command.py
b/dbuscron/command.py
index
e25c5f6
..
a0480e6
100644
(file)
--- 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())