From da9785cf7270af56d3f66410e7f895ea353f220a Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Mon, 29 Jun 2009 11:10:04 -0400 Subject: [PATCH] TracZephyrPlugin: Permit using a custom command (e.g. zcrypt) Signed-off-by: Geoffrey Thomas --- TracZephyrPlugin/ZephyrPlugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TracZephyrPlugin/ZephyrPlugin.py b/TracZephyrPlugin/ZephyrPlugin.py index 791b6a3..ad91865 100644 --- a/TracZephyrPlugin/ZephyrPlugin.py +++ b/TracZephyrPlugin/ZephyrPlugin.py @@ -10,7 +10,10 @@ class ZephyrPlugin(Component): zclass = self.config.get('ZephyrPlugin', 'class') if zclass == '': return - p = subprocess.Popen(['zwrite', '-q', '-l', '-d', + command = self.config.get('ZephyrPlugin', 'command') + if not command: + command = 'zwrite' + p = subprocess.Popen([command, '-q', '-l', '-d', '-c', zclass, '-i', 'trac-#%s' % id], stdin=subprocess.PIPE) -- 2.45.0