Fix standalone update.py run by applying ssl patch

This commit is contained in:
HelloZeroNet 2016-04-06 13:34:51 +02:00
parent a37c3231b0
commit 258822d74b
1 changed files with 7 additions and 0 deletions

View File

@ -79,6 +79,13 @@ 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 Config import config
config.parse()
from src.util import SslPatch
try:
update()
except Exception, err: