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'