copy_cacert.py 282 Bytes
Newer Older
Efthymia Bika's avatar
Efthymia Bika committed
1 2 3 4 5 6 7 8 9 10 11 12 13
import os
import shutil

def main():
    os.chdir(os.path.dirname(os.path.realpath(__file__)))
    os.system("pip install certifi")

    print "Copying certifi's cacert.pem"
    import certifi
    shutil.copy2(certifi.where(), './cacert.pem')

if __name__ == '__main__':
    main()