From b82d83f79389897ed5f05eb9b5e8daf9cf64ee6f Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 8 Aug 2023 11:34:14 -0700 Subject: fix: :bug: add data file for ca_bundle --- run.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'run.py') 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() -- cgit v1.2.3-70-g09d2