1
from os.path import join, exists, realpath
5
for dir in xdg.BaseDirectory.xdg_data_dirs:
6
if exists (join(dir, "gwibber", "plugins", "sina", "data", "sina")):
7
prv_file = join(dir, "gwibber", "plugins", "sina", "data", "sina")
8
f = open(prv_file, "r")
14
SINA_OAUTH_KEY = data["SINA_OAUTH_KEY"]
15
SINA_OAUTH_SECRET = data["SINA_OAUTH_SECRET"]
16
return SINA_OAUTH_KEY, SINA_OAUTH_SECRET