~ken-vandine/ubuntu/lucid/gwibber/twitter-oauth

« back to all changes in this revision

Viewing changes to debian/custom.py

  • Committer: Ken VanDine
  • Date: 2010-08-31 20:08:35 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: ken.vandine@canonical.com-20100831200835-i7l1y21kdikiq582
Tags: 2.30.2~bzr742-0ubuntu1
releasing version 2.30.2~bzr742-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from os.path import join, exists
 
2
 
 
3
prv_file = join("/usr/share/gwibber/data", "twitter")
 
4
if exists(prv_file):
 
5
  f = open(prv_file, "r")
 
6
  try:
 
7
    data = eval(f.read())
 
8
  except:
 
9
    pass
 
10
 
 
11
TWITTER_OAUTH_KEY = data["TWITTER_OAUTH_KEY"]
 
12
TWITTER_OAUTH_SECRET = data["TWITTER_OAUTH_SECRET"]