feedify: use better relative path for the .ini
This commit is contained in:
		@@ -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))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user