From 2225cbf7586baa14c2c3619c94ea734286a093df Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Fri, 8 Mar 2013 11:24:52 -0500 Subject: [PATCH] Move twitter-bot to api/demos/. (imported from commit eb0a9466b9064f89322ab593134af0761caeea8a) --- bots/twitter-bot.py => demos/twitter-bot | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) rename bots/twitter-bot.py => demos/twitter-bot (97%) diff --git a/bots/twitter-bot.py b/demos/twitter-bot similarity index 97% rename from bots/twitter-bot.py rename to demos/twitter-bot index 29a8dd3..8f5e1b8 100755 --- a/bots/twitter-bot.py +++ b/demos/twitter-bot @@ -3,13 +3,11 @@ import os import sys import optparse import ConfigParser -from os import path + +import humbug CONFIGFILE = os.path.expanduser("~/.humbug_twitterrc") -sys.path.append(path.join(path.dirname(__file__), '../api')) -import humbug - def write_config(config, since_id, user): config.set('twitter', 'since_id', since_id) config.set('twitter', 'user_id', user) @@ -87,7 +85,7 @@ if not consumer_key or not consumer_secret or not access_token_key or not access try: import twitter except ImportError: - parser.error("Install twitter-python") + parser.error("Please install twitter-python") api = twitter.Api(consumer_key=consumer_key, consumer_secret=consumer_secret,