centralize mojibake support stuff

This commit is contained in:
ed
2021-07-24 21:56:55 +02:00
parent 4451485664
commit d020527c6f
14 changed files with 176 additions and 83 deletions

View File

@@ -28,6 +28,7 @@ except ImportError:
from .__init__ import E, PY2, MACOS
from .util import spack, min_ex, start_stackmon, start_log_thrs
from .bos import bos
from .httpconn import HttpConn
if PY2:
@@ -73,7 +74,7 @@ class HttpSrv(object):
}
cert_path = os.path.join(E.cfg, "cert.pem")
if os.path.exists(cert_path):
if bos.path.exists(cert_path):
self.cert_path = cert_path
else:
self.cert_path = None