From d58a1c6f6ef6ea1e7e8383e432002297dab9c3cb Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 21 Apr 2010 13:58:15 -0400 Subject: [PATCH] Updated documentation --- README | 19 ++++++++++++++++++- mytwitter.py | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README b/README index 87da53b..c364493 100644 --- a/README +++ b/README @@ -5,7 +5,12 @@ mytwitter is a simple python twitter application. I wrote it for two reasons: 2. An excuse to learn Python -While I doubt it will be terribly useful for anyone other than me, feel free to take it for a spin and let me know how it goes. You'll need the following python modules: +While I doubt it will be terribly useful for anyone other than me, feel free to take it for a spin and let me know how it goes. + + +INSTALLATION +------------ +You'll need the following python modules: * pyGTK * dateutil @@ -22,3 +27,15 @@ python setup.py build python setup.py install --user This will install python-twitter in your ~/.local/lib directory, which python 2.6 will automatically include in PYTHONPATH. + + + +CONFIGURATION +------------- +Copy the supplied mytwitter.conf file to ~/.mytwitter.conf, and edit it to suit your preferences. At a minimum, you need to change the [account] section to contain a valid twitter username and password. You can have multiple [account] sections. + + + +USAGE +----- +Just run ./mytwitter.py, and start playing around. Right now, it is best to run this file in-place; it expects twitterwidgets.py and default.glade to be in the same directory. diff --git a/mytwitter.py b/mytwitter.py index f2a27bc..6c97f1f 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -19,7 +19,7 @@ class MyTwitter(): self.accounts = {} for item in config.sections(): - if (re.match(r'account-', item)): + if (re.match(r'account', item)): username = config.get(item, 'username') self.accounts[username] = twitter.Api(username=username, password=config.get(item, 'password'))