From 963e6d0ad81eae86b6427fb09700e8464e075792 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 5 Oct 2017 13:16:04 -0700 Subject: [PATCH] zephyr_mirror: Always run backend script from current directory. While this technically removes functionality, it's rare that it would be useful to do this. --- zulip/integrations/zephyr/zephyr_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip/integrations/zephyr/zephyr_mirror.py b/zulip/integrations/zephyr/zephyr_mirror.py index 9c36d95..7b4dc53 100755 --- a/zulip/integrations/zephyr/zephyr_mirror.py +++ b/zulip/integrations/zephyr/zephyr_mirror.py @@ -49,7 +49,7 @@ signal.signal(signal.SIGINT, die) from zulip import RandomExponentialBackoff -args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")] +args = [os.path.join(os.path.dirname(os.path.realpath(__file__)), "zephyr_mirror_backend.py")] args.extend(sys.argv[1:]) if options.sync_subscriptions: