feedify: use better relative path for the .ini

master
pictuga 2015-04-06 22:19:13 +08:00
parent c41c0761b6
commit 1335b3fdda
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env python
import os.path
import re
import json
@ -32,7 +34,7 @@ def to_class(query):
def get_rule(link):
config = ConfigParser()
config.read('feedify.ini')
config.read(os.path.join(os.path.dirname(__file__), 'feedify.ini'))
for section in config.sections():
values = dict(config.items(section))