summaryrefslogtreecommitdiff
path: root/plugins/exec.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-12 16:51:24 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-12 16:51:24 +0100
commite67e22766f0da948ee9f310d29278371ef9b0563 (patch)
tree736b13f2f7f217ef94bec95404d7fa8a87c16d87 /plugins/exec.py
parent75ae1772e49a59b373c26d1c942f25edd473921c (diff)
parent05ef3594894e0bcbe80b98e81c2a2659ea01855f (diff)
downloadpoezio-e67e22766f0da948ee9f310d29278371ef9b0563.tar.gz
poezio-e67e22766f0da948ee9f310d29278371ef9b0563.tar.bz2
poezio-e67e22766f0da948ee9f310d29278371ef9b0563.tar.xz
poezio-e67e22766f0da948ee9f310d29278371ef9b0563.zip
Merge branch 'master' of http://git.louiz.org/poezio
Diffstat (limited to 'plugins/exec.py')
-rw-r--r--plugins/exec.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/exec.py b/plugins/exec.py
index f7f451df..c729b555 100644
--- a/plugins/exec.py
+++ b/plugins/exec.py
@@ -22,12 +22,7 @@ class Plugin(BasePlugin):
self.core.command_help('exec')
return
try:
- cut_command = shlex.split(command)
- except Exception as e:
- self.core.information('Failed to parse command: %s' % (e,), 'Error')
- return
- try:
- process = subprocess.Popen(cut_command, stdout=subprocess.PIPE)
+ process = subprocess.Popen(['sh', '-c', command], stdout=subprocess.PIPE)
except OSError as e:
self.core.information('Failed to execute command: %s' % (e,), 'Error')
return