Fix socket proxy skip on updating
This commit is contained in:
parent
653219d1de
commit
4c11c96164
1 changed files with 4 additions and 5 deletions
|
@ -9,10 +9,6 @@ import re
|
||||||
import json
|
import json
|
||||||
import cStringIO as StringIO
|
import cStringIO as StringIO
|
||||||
|
|
||||||
from gevent import monkey
|
|
||||||
monkey.patch_all()
|
|
||||||
|
|
||||||
|
|
||||||
def download():
|
def download():
|
||||||
from src.util import helper
|
from src.util import helper
|
||||||
|
|
||||||
|
@ -127,9 +123,12 @@ def update():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Fix broken gevent SSL
|
|
||||||
import sys
|
import sys
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) # Imports relative to src
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) # Imports relative to src
|
||||||
|
|
||||||
|
from gevent import monkey
|
||||||
|
monkey.patch_all()
|
||||||
|
|
||||||
from Config import config
|
from Config import config
|
||||||
config.parse()
|
config.parse()
|
||||||
from src.util import SslPatch
|
from src.util import SslPatch
|
||||||
|
|
Loading…
Reference in a new issue