feedify: use better relative path for the .ini
parent
c41c0761b6
commit
1335b3fdda
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import os.path
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
@ -32,7 +34,7 @@ def to_class(query):
|
||||||
|
|
||||||
def get_rule(link):
|
def get_rule(link):
|
||||||
config = ConfigParser()
|
config = ConfigParser()
|
||||||
config.read('feedify.ini')
|
config.read(os.path.join(os.path.dirname(__file__), 'feedify.ini'))
|
||||||
|
|
||||||
for section in config.sections():
|
for section in config.sections():
|
||||||
values = dict(config.items(section))
|
values = dict(config.items(section))
|
||||||
|
|
Loading…
Reference in New Issue