diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-08 11:34:14 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-08 11:34:14 -0700 |
commit | b82d83f79389897ed5f05eb9b5e8daf9cf64ee6f (patch) | |
tree | 352f07f52ea5aabb08b69f89c55ba571050df384 /run.py | |
parent | 160723abdbc336afc260e5aa6b103b27c5c27909 (diff) | |
download | sncontinue-b82d83f79389897ed5f05eb9b5e8daf9cf64ee6f.tar.gz sncontinue-b82d83f79389897ed5f05eb9b5e8daf9cf64ee6f.tar.bz2 sncontinue-b82d83f79389897ed5f05eb9b5e8daf9cf64ee6f.zip |
fix: :bug: add data file for ca_bundle
Diffstat (limited to 'run.py')
-rw-r--r-- | run.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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() |