summaryrefslogtreecommitdiff
path: root/run.py
blob: ec093c8e5e4248980542f0e1729523c08eeaf089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os
import sys

from server.main import main

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__":
    print("Running Continue server version 0.0.350")
    main()