From d23d10bace6fbba07e1574bd3db7c487925a78b8 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Mon, 29 Jun 2009 11:51:14 -0400 Subject: [PATCH] TracZephyrPlugin: Be more flexible in the custom zwrite command Signed-off-by: Geoffrey Thomas --- TracZephyrPlugin/ZephyrPlugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TracZephyrPlugin/ZephyrPlugin.py b/TracZephyrPlugin/ZephyrPlugin.py index ad91865..f011a8b 100644 --- a/TracZephyrPlugin/ZephyrPlugin.py +++ b/TracZephyrPlugin/ZephyrPlugin.py @@ -10,11 +10,11 @@ class ZephyrPlugin(Component): zclass = self.config.get('ZephyrPlugin', 'class') if zclass == '': return - command = self.config.get('ZephyrPlugin', 'command') + command = self.config.get('ZephyrPlugin', 'command').split(' ') if not command: - command = 'zwrite' - p = subprocess.Popen([command, '-q', '-l', '-d', - '-c', zclass, + command = ['zwrite', '-q', '-l', '-d'] + p = subprocess.Popen(command + + ['-c', zclass, '-i', 'trac-#%s' % id], stdin=subprocess.PIPE) p.stdin.write(message.encode('utf-8', 'replace')) -- 2.45.0