X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/blobdiff_plain/fe93b4bca7e69360dca6d5a8ae83cfc2fa7ce453..776bd957124c1dfcde2890f989815d823b709c59:/TracZephyrPlugin/ZephyrPlugin.py diff --git a/TracZephyrPlugin/ZephyrPlugin.py b/TracZephyrPlugin/ZephyrPlugin.py index 88b9ec2..aeaec98 100644 --- a/TracZephyrPlugin/ZephyrPlugin.py +++ b/TracZephyrPlugin/ZephyrPlugin.py @@ -19,6 +19,9 @@ class ZephyrPlugin(Component): command = shlex.split(self.config.get('ZephyrPlugin', 'command').encode('utf-8')) if not command: command = ['zwrite', '-q', '-l', '-d'] + opcode = self.config.get('ZephyrPlugin', 'opcode') + if opcode: + command += ['-O', opcode] p = subprocess.Popen(command + ['-c', zclass, '-i', 'trac-#%s' % id],