36280c2769
(imported from commit 45967b8b806df616b0480b217dd5db82c5a2cabd)
22 lines
458 B
Python
Executable file
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)
|