From bc4e54a35d8206dd2f3ba471927b5fb5a274a550 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 5 Oct 2017 12:44:27 -0700 Subject: [PATCH] zephyr_mirror: Restart self using __file__, not root-path. This should do the same thing, but with less complexity. --- zulip/integrations/zephyr/zephyr_mirror_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip/integrations/zephyr/zephyr_mirror_backend.py b/zulip/integrations/zephyr/zephyr_mirror_backend.py index e8574c7..22d0830 100755 --- a/zulip/integrations/zephyr/zephyr_mirror_backend.py +++ b/zulip/integrations/zephyr/zephyr_mirror_backend.py @@ -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)