You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
417 B
27 lines
417 B
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
ceritfi.py
|
|
~~~~~~~~~~
|
|
|
|
This module returns the installation location of cacert.pem.
|
|
"""
|
|
|
|
import os
|
|
try:
|
|
import certifi
|
|
except ImportError:
|
|
certifi = None
|
|
|
|
|
|
def where():
|
|
|
|
if certifi:
|
|
return certifi.where()
|
|
else:
|
|
f = os.path.split(__file__)[0]
|
|
return os.path.join(f, 'cacert.pem')
|
|
|
|
if __name__ == '__main__':
|
|
print(where())
|
|
|