summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2012-02-07 16:16:23 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2012-02-07 16:16:23 +0100
commita25f5fd6ac974f5b39ff127dec3b8305a80c231e (patch)
tree18d9c3df29e363b8c19f387602a72474ea706e6a
parentefd813cfaa811fd42bbe01dcbc1b2f309a13d6b6 (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.py2
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)