2012-09-06 20:45:48 +02:00
|
|
|
#!/usr/bin/python
|
2012-09-13 02:29:26 +02:00
|
|
|
import sys
|
2012-09-13 03:41:52 +02:00
|
|
|
import subprocess
|
2012-11-19 18:04:23 +01:00
|
|
|
import time
|
2012-09-21 21:17:25 +02:00
|
|
|
import optparse
|
2012-09-26 16:44:42 +02:00
|
|
|
import os
|
2012-11-19 18:04:23 +01:00
|
|
|
import traceback
|
2012-10-29 23:09:51 +01:00
|
|
|
|
2012-11-19 18:04:23 +01:00
|
|
|
from zephyr_mirror_backend import parse_args
|
2012-10-11 22:20:38 +02:00
|
|
|
|
2012-11-19 18:04:23 +01:00
|
|
|
(options, args) = parse_args()
|
2012-10-11 22:20:38 +02:00
|
|
|
|
2012-11-19 18:04:23 +01:00
|
|
|
while True:
|
|
|
|
print "Starting zephyr mirroring bot"
|
2012-11-13 22:30:39 +01:00
|
|
|
try:
|
2012-11-19 18:04:23 +01:00
|
|
|
args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")]
|
|
|
|
args.extend(sys.argv[1:])
|
|
|
|
subprocess.call(args)
|
2012-11-13 22:30:39 +01:00
|
|
|
except:
|
2012-11-19 18:04:23 +01:00
|
|
|
traceback.print_exc()
|
|
|
|
time.sleep(1)
|