From 96f2100974325c03a927458ea2f113a2c575e38c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 5 Oct 2017 13:02:26 -0700 Subject: [PATCH] zephyr: Remove root-path import nonsense from check-mirroring. We no longer need this in order to access the script's dependencies, since it now is part of a proper package. --- zulip/integrations/zephyr/check-mirroring | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/zulip/integrations/zephyr/check-mirroring b/zulip/integrations/zephyr/check-mirroring index 699a6e4..e465fec 100755 --- a/zulip/integrations/zephyr/check-mirroring +++ b/zulip/integrations/zephyr/check-mirroring @@ -9,6 +9,8 @@ import random import logging import subprocess import hashlib +import zephyr +import zulip from six.moves import range if False: @@ -26,24 +28,10 @@ parser.add_option('--site', parser.add_option('--sharded', default=False, action='store_true') -parser.add_option('--root-path', - dest='root_path', - default="/home/zulip", - action='store') (options, args) = parser.parse_args() -# The 'api' directory needs to go first, so that 'import zulip' won't pick up -# some other directory named 'zulip'. -pyzephyr_lib_path = "python-zephyr/build/lib.linux-%s-%s/" % (os.uname()[4], sys.version[0:3]) -sys.path[:0] = [os.path.join(options.root_path, "api/"), - os.path.join(options.root_path, "python-zephyr"), - os.path.join(options.root_path, pyzephyr_lib_path), - options.root_path] - mit_user = 'tabbott/extra@ATHENA.MIT.EDU' -sys.path.append(".") -import zulip zulip_client = zulip.Client( verbose=True, client="ZulipMonitoring/0.1", @@ -147,7 +135,6 @@ except Exception: print_status_and_exit(1) # Subscribe to Zephyrs -import zephyr zephyr_subs_to_add = [] for (stream, test) in test_streams: if stream == "message":