From 4c11c96164f02391edc9501e955e7d3964ff453d Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 5 Jun 2017 01:07:39 +0200 Subject: [PATCH] Fix socket proxy skip on updating --- update.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/update.py b/update.py index bfdeb50c..9aea5a65 100644 --- a/update.py +++ b/update.py @@ -9,10 +9,6 @@ import re import json import cStringIO as StringIO -from gevent import monkey -monkey.patch_all() - - def download(): from src.util import helper @@ -127,9 +123,12 @@ def update(): if __name__ == "__main__": - # Fix broken gevent SSL import sys 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 config.parse() from src.util import SslPatch