api: Fix path in send_message example.

(imported from commit 6aab581bf00736986ffcd11042c757eff0c78653)
This commit is contained in:
Tim Abbott 2013-07-25 13:59:19 -04:00
parent 22e5a15bc4
commit 35a2435195

View file

@ -24,6 +24,7 @@
import sys
from os import path
import optparse
sys.path.append(path.join(path.dirname(__file__), '..'))
import humbug
usage = """send-message --user=<bot's email address> --api-key=<bot's api key> [options] <recipients>
@ -45,7 +46,6 @@ parser.add_option_group(humbug.generate_option_group(parser))
if len(args) == 0:
parser.error("You must specify recipients")
sys.path.append(path.join(path.dirname(__file__), '..'))
client = humbug.init_from_options(options)
message_data = {