~pablo-a-saavedra/gwibber/yammer-integration

« back to all changes in this revision

Viewing changes to gwibber/microblog/util/resources.py

  • Committer: Ken VanDine
  • Date: 2010-09-01 01:56:24 UTC
  • mfrom: (738.1.4 gwibber-2.30-oauth)
  • Revision ID: ken.vandine@canonical.com-20100901015624-kjxjz78ozdd3dt42
Tags: 2.30.2
Merged twitter/oauth branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
"""
6
6
 
7
7
import os, sys
 
8
from const import *
 
9
 
 
10
# Try to import * from custom, install custom.py to include packaging 
 
11
# customizations like distro API keys, etc
 
12
try:
 
13
  from custom import *
 
14
except:
 
15
  pass
 
16
 
8
17
 
9
18
PROGRAM_NAME = "gwibber"
10
19
UI_DIR_NAME = "ui"
30
39
 
31
40
DATA_DIRS += [os.path.join(d, PROGRAM_NAME) for d in DATA_BASE_DIRS]
32
41
 
 
42
def get_twitter_keys():
 
43
  # Distros should register their own keys and not rely on the defaults
 
44
  return TWITTER_OAUTH_KEY, TWITTER_OAUTH_SECRET
 
45
 
33
46
def get_desktop_file():
34
47
  p = os.path.join(LAUNCH_DIR, "gwibber.desktop")
35
48
  if os.path.exists(p): return p