summarylogtreecommitdiffstats
path: root/allow-missing-vendor.patch
blob: 80a853f3ef2ddeb4df185c577497c366c944739d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/jedihttp/utils.py b/jedihttp/utils.py
index f04372a..acec90c 100644
--- a/jedihttp/utils.py
+++ b/jedihttp/utils.py
@@ -18,6 +18,9 @@ import sys
 def add_vendor_folder_to_sys_path():
     vendor_folder = os.path.join(os.path.dirname(__file__), '..', 'vendor')
 
+    if not os.path.exists(vendor_folder):
+        return
+
     for folder in os.listdir(vendor_folder):
         sys.path.insert(0, os.path.realpath(os.path.join(vendor_folder,
                                                          folder)))