File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- * .conf
1
+ config.ini
Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ def post(word):
43
43
# Get Credential Key
44
44
try :
45
45
parser = configparser .ConfigParser ()
46
- parser .readfp (codecs .open (BASE_DIR + '/post_twitter.conf ' , "r" , "utf8" ))
47
- CONSUMER_KEY = parser ['key' ]['consumer_key' ]
48
- CONSUMER_SECRET = parser ['key' ]['consumer_secret' ]
49
- TOKEN = parser ['key' ]['token' ]
50
- TOKEN_SECRET = parser ['key' ]['token_secret' ]
46
+ parser .readfp (codecs .open (BASE_DIR + '/config.ini ' , "r" , "utf8" ))
47
+ CONSUMER_KEY = parser ['twitter- key' ]['consumer_key' ]
48
+ CONSUMER_SECRET = parser ['twitter- key' ]['consumer_secret' ]
49
+ TOKEN = parser ['twitter- key' ]['token' ]
50
+ TOKEN_SECRET = parser ['twitter- key' ]['token_secret' ]
51
51
except :
52
52
log ("Failed while parsing config" )
53
53
log (traceback .format_exc ())
You can’t perform that action at this time.
0 commit comments