python-zulip-api/bots/zephyr_mirror.py
Tim Abbott 36280c2769 zephyr_mirror: Use minimal wrapper script that is hard to accidentally break.
(imported from commit 45967b8b806df616b0480b217dd5db82c5a2cabd)
2012-11-19 12:44:06 -05:00

22 lines
458 B
Python
Executable file

#!/usr/bin/python
import sys
import subprocess
import time
import optparse
import os
import traceback
from zephyr_mirror_backend import parse_args
(options, args) = parse_args()
while True:
print "Starting zephyr mirroring bot"
try:
args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")]
args.extend(sys.argv[1:])
subprocess.call(args)
except:
traceback.print_exc()
time.sleep(1)