check-mirroring: Make root_path and option (with new default).
(imported from commit df15d089f234bfe5373fc3fed95eb2f3b3ee42b2)
This commit is contained in:
parent
f3cdfd2e4d
commit
6aad2946a1
|
@ -5,10 +5,6 @@ import optparse
|
||||||
import os
|
import os
|
||||||
import random
|
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 = optparse.OptionParser()
|
||||||
parser.add_option('--verbose',
|
parser.add_option('--verbose',
|
||||||
dest='verbose',
|
dest='verbose',
|
||||||
|
@ -18,8 +14,16 @@ parser.add_option('--site',
|
||||||
dest='site',
|
dest='site',
|
||||||
default="https://humbughq.com",
|
default="https://humbughq.com",
|
||||||
action='store')
|
action='store')
|
||||||
|
parser.add_option('--root-path',
|
||||||
|
dest='root_path',
|
||||||
|
default="/home/humbug",
|
||||||
|
action='store')
|
||||||
(options, args) = parser.parse_args()
|
(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'
|
mit_user = 'tabbott/extra@ATHENA.MIT.EDU'
|
||||||
humbug_user = 'tabbott/extra@mit.edu'
|
humbug_user = 'tabbott/extra@mit.edu'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue