From 6aad2946a117349cf2a12beaa83d1975fdf54dfd Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 8 Nov 2012 13:16:34 -0500 Subject: [PATCH] check-mirroring: Make root_path and option (with new default). (imported from commit df15d089f234bfe5373fc3fed95eb2f3b3ee42b2) --- bots/check-mirroring | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bots/check-mirroring b/bots/check-mirroring index 42fc704..87a5da3 100755 --- a/bots/check-mirroring +++ b/bots/check-mirroring @@ -5,10 +5,6 @@ import optparse import os import random -root_path = "/mit/tabbott/for_friends" -sys.path.append(root_path + "/python-zephyr") -sys.path.append(root_path + "/python-zephyr/build/lib.linux-x86_64-2.6/") - parser = optparse.OptionParser() parser.add_option('--verbose', dest='verbose', @@ -18,8 +14,16 @@ parser.add_option('--site', dest='site', default="https://humbughq.com", action='store') +parser.add_option('--root-path', + dest='root_path', + default="/home/humbug", + action='store') (options, args) = parser.parse_args() +sys.path[:0] = [os.path.join(options.root_path, "python-zephyr"), + os.path.join(options.root_path, "python-zephyr/build/lib.linux-x86_64-2.6/"), + options.root_path] + mit_user = 'tabbott/extra@ATHENA.MIT.EDU' humbug_user = 'tabbott/extra@mit.edu'