diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-02-07 16:16:23 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-02-07 16:16:23 +0100 |
commit | a25f5fd6ac974f5b39ff127dec3b8305a80c231e (patch) | |
tree | 18d9c3df29e363b8c19f387602a72474ea706e6a | |
parent | efd813cfaa811fd42bbe01dcbc1b2f309a13d6b6 (diff) |
Fix the args parameter handed to spawnProcess
Quoting http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.IReactorProcess.spawnProcess.html:
args - the command line arguments to pass to the process; a sequence
of strings. The first string should be the executable's name.
Fixes #308, possible more.
-rw-r--r-- | alot/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py index 9d6caecb..f14c2c94 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -293,7 +293,7 @@ def call_cmd_async(cmdlist, stdin=None, env=None): logging.debug('ENV = %s' % environment) proc = reactor.spawnProcess(_EverythingGetter(d), executable=cmdlist[0], env=environment, - args=cmdlist[1:]) + args=cmdlist) if stdin: logging.debug('writing to stdin') proc.write(stdin) |