Move files around in the API.

Bots are not part of what we distribute, so put them in the repo root.

We also updated some of the bots to use relative path names.

(imported from commit 0471d863450712fd0cdb651f39f32e9041df52ba)
This commit is contained in:
Luke Faraone 2013-01-31 14:09:01 -05:00
parent 1622f53cb1
commit 57e0d37249
23 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,7 @@ import itertools
import traceback
from os import path
sys.path.append(path.join(path.dirname(__file__), '..'))
sys.path.append(path.join(path.dirname(__file__), '../api'))
import humbug
parser = optparse.OptionParser(r"""

View File

@ -18,6 +18,7 @@ from trac.core import Component, implements
from trac.ticket import ITicketChangeListener
import sys
# This script lives on one machine, so an absolute path is fine.
sys.path.append("/home/humbug/humbug/api")
import humbug
client = humbug.Client(

View File

@ -3,7 +3,7 @@ import sys
import optparse
from os import path
sys.path.append(path.join(path.dirname(__file__), '..'))
sys.path.append(path.join(path.dirname(__file__), '../api'))
import humbug
# Nagios passes the notification details as command line options.

View File

@ -42,7 +42,7 @@ from os import path, environ
# Here we assume it's in the parent of the directory
# where this script lives.
humbug_directory = path.join(path.dirname(__file__), '..')
humbug_directory = path.join(path.dirname(__file__), '../api')
sys.path.append(humbug_directory)

View File

@ -7,7 +7,7 @@ from os import path
CONFIGFILE = os.path.expanduser("~/.humbug_twitterrc")
sys.path.append(path.join(path.dirname(__file__), '../..'))
sys.path.append(path.join(path.dirname(__file__), '../api'))
import humbug
def write_config(config, since_id, user):