Fix path injection for tools/review

(imported from commit 25bac426b71a55f29faa232dcac1d957f2941182)
This commit is contained in:
Michael McCanna 2013-06-19 12:46:26 -04:00 committed by acrefoot
parent a37b08db58
commit 425a247569
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ def main(args):
print >>sys.stdout print >>sys.stdout
print >>sys.stdout, msg.get_payload(decode=True), print >>sys.stdout, msg.get_payload(decode=True),
else: else:
sys.path.append(os.path.join(os.path.dirname(__file__), '../api')) sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../api'))
import humbug import humbug
client = humbug.Client( client = humbug.Client(
email=get_current_user_email(repo), email=get_current_user_email(repo),