|  | @@ -23,18 +23,10 @@ if __name__ == "__main__":
 | 
	
		
			
			| 23 | 23 |      path.append(realpath(dirname(realpath(__file__))+'/../'))
 | 
	
		
			
			| 24 | 24 |  
 | 
	
		
			
			| 25 | 25 |  from flask import Flask, request, flash, render_template, url_for, Response, make_response
 | 
	
		
			
			| 26 |  | -import ConfigParser
 | 
	
		
			
			| 27 |  | -from os import getenv
 | 
	
		
			
			| 28 | 26 |  from searx.engines import search, categories
 | 
	
		
			
			| 29 | 27 |  from searx import settings
 | 
	
		
			
			| 30 | 28 |  import json
 | 
	
		
			
			| 31 | 29 |  
 | 
	
		
			
			| 32 |  | -cfg = ConfigParser.SafeConfigParser()
 | 
	
		
			
			| 33 |  | -cfg.read('/etc/searx.conf')
 | 
	
		
			
			| 34 |  | -cfg.read(getenv('HOME')+'/.searxrc')
 | 
	
		
			
			| 35 |  | -cfg.read(getenv('HOME')+'/.config/searx/searx.conf')
 | 
	
		
			
			| 36 |  | -cfg.read('searx.conf')
 | 
	
		
			
			| 37 |  | -
 | 
	
		
			
			| 38 | 30 |  
 | 
	
		
			
			| 39 | 31 |  app = Flask(__name__)
 | 
	
		
			
			| 40 | 32 |  app.secret_key = settings.secret_key
 |