zephyr_mirror: Restart self using __file__, not root-path.

This should do the same thing, but with less complexity.
This commit is contained in:
Tim Abbott 2017-10-05 12:44:27 -07:00
parent 7e5a320343
commit bc4e54a35d

View file

@ -246,7 +246,7 @@ def maybe_restart_mirroring_script():
logger.exception("")
while True:
try:
os.execvp(os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py"), sys.argv)
os.execvp(os.path.abspath(__file__), sys.argv)
except Exception:
logger.exception("Error restarting mirroring script; trying again... Traceback:")
time.sleep(1)