NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

core.py (594B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\certifi\core.py
      2 from __future__ import print_function
      3 import os
      4 try:
      5     from blue import pyos, paths
      6 except ImportError:
      7     pyos = None
      8     paths = None
      9 
     10 class DeprecatedBundleWarning(DeprecationWarning):
     11     pass
     12 
     13 
     14 def where():
     15     return os.path.join(get_root(), 'cacert.pem')
     16 
     17 
     18 def get_root():
     19     root = os.path.split(__file__)[0]
     20     if pyos:
     21         if pyos.packaged:
     22             root = paths.ResolvePath(u'bin:/') + 'packages/certifi/'
     23     return root
     24 
     25 
     26 if __name__ == '__main__':
     27     print(where())