summarylogtreecommitdiffstats
path: root/allow-missing-vendor.patch
blob: 0f87a7cdbe42ae4590c4ac2ad38176c6bde817c9 (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 AddVendorFolderToSysPath():
     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)))