summaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'run.py')
-rw-r--r--run.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/run.py b/run.py
index 7160bbc7..295ed086 100644
--- a/run.py
+++ b/run.py
@@ -1,4 +1,12 @@
from continuedev.main import main
+import os
+import sys
+
+if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
+ ca_bundle_path = os.path.join(sys._MEIPASS, 'ca_bundle', 'cacert.pem')
+ print("Certificates at: ", ca_bundle_path)
+ os.environ['SSL_CERT_FILE'] = ca_bundle_path
+ os.environ['REQUESTS_CA_BUNDLE'] = ca_bundle_path
if __name__ == "__main__":
main()