From 258822d74b547af4041f308b4cf623cb465ea620 Mon Sep 17 00:00:00 2001
From: HelloZeroNet <hello@noloop.me>
Date: Wed, 6 Apr 2016 13:34:51 +0200
Subject: [PATCH] Fix standalone update.py run by applying ssl patch

---
 update.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/update.py b/update.py
index 9469ee4d..0e2afc62 100644
--- a/update.py
+++ b/update.py
@@ -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: