diff --git a/mytwitter.py b/mytwitter.py index e2fa6d3..dab2159 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -13,9 +13,9 @@ class MyTwitter(): """ Display Tweets, post to twitter """ - def __init__(self): + def __init__(self, config_file): config = ConfigParser.ConfigParser() - config.read(os.path.expanduser("~/.mytwitter")) + config.read(os.path.expanduser(config_file)) self.username = config.get('global', 'username') self.password = config.get('global', 'password') @@ -269,6 +269,8 @@ class MyTwitter(): # main +config_file = "~/.mytwitter" -my_twitter = MyTwitter() + +my_twitter = MyTwitter(config_file) gtk.main()