Rename api.common to humbug
Fixes #482. (imported from commit 1bd6a7fd993d8d5e225e0311c288dbce0c369a40)
This commit is contained in:
parent
4bfd784423
commit
f9f8a6e603
14 changed files with 97 additions and 80 deletions
|
@ -6,6 +6,7 @@ import os
|
|||
import random
|
||||
import logging
|
||||
import subprocess
|
||||
from os import path
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
parser.add_option('--verbose',
|
||||
|
@ -33,13 +34,14 @@ mit_user = 'tabbott/extra@ATHENA.MIT.EDU'
|
|||
humbug_user = 'tabbott/extra@mit.edu'
|
||||
|
||||
sys.path.append(".")
|
||||
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
|
||||
import api.common
|
||||
humbug_client = api.common.HumbugAPI(email=humbug_user,
|
||||
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
verbose=True,
|
||||
client="test: Humbug API",
|
||||
site=options.site)
|
||||
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||
import humbug
|
||||
humbug_client = humbug.HumbugAPI(
|
||||
email=humbug_user,
|
||||
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
verbose=True,
|
||||
client="test: Humbug API",
|
||||
site=options.site)
|
||||
|
||||
# Configure logging
|
||||
log_file = "/home/humbug/check-mirroring-log"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue