forked from Icycoide/searxng
Merge branch 'master' into bang_fixes
This commit is contained in:
commit
3b8b862d8c
4 changed files with 14 additions and 4 deletions
|
@ -39,3 +39,11 @@ engines:
|
|||
locales:
|
||||
en : English
|
||||
hu : Magyar
|
||||
|
||||
doi_resolvers :
|
||||
oadoi.org : 'https://oadoi.org/'
|
||||
doi.org : 'https://doi.org/'
|
||||
doai.io : 'http://doai.io/'
|
||||
sci-hub.tw : 'http://sci-hub.tw/'
|
||||
|
||||
default_doi_resolver : 'oadoi.org'
|
||||
|
|
|
@ -6,7 +6,6 @@ import os
|
|||
import subprocess
|
||||
import traceback
|
||||
|
||||
|
||||
from os.path import dirname, join, abspath
|
||||
|
||||
from splinter import Browser
|
||||
|
@ -49,6 +48,7 @@ class SearxRobotLayer():
|
|||
exe = 'python'
|
||||
|
||||
# set robot settings path
|
||||
os.environ['SEARX_DEBUG'] = '1'
|
||||
os.environ['SEARX_SETTINGS_PATH'] = abspath(
|
||||
dirname(__file__) + '/settings_robot.yml')
|
||||
|
||||
|
@ -58,6 +58,8 @@ class SearxRobotLayer():
|
|||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT
|
||||
)
|
||||
if hasattr(self.server.stdout, 'read1'):
|
||||
print(self.server.stdout.read1(1024).decode('utf-8'))
|
||||
|
||||
def tearDown(self):
|
||||
os.kill(self.server.pid, 9)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue