From 6e643d7579de8bcc5a112851197f615a837d6500 Mon Sep 17 00:00:00 2001 From: blitzman Date: Thu, 23 Feb 2017 23:53:57 -0500 Subject: [PATCH] Encode the SSL paths for frozen environments (to fix #548) --- config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 199869b20..2e857217d 100644 --- a/config.py +++ b/config.py @@ -101,8 +101,8 @@ def defPaths(customSavePath): __createDirs(savePath) if isFrozen(): - os.environ["REQUESTS_CA_BUNDLE"] = os.path.join(pyfaPath, "cacert.pem") - os.environ["SSL_CERT_FILE"] = os.path.join(pyfaPath, "cacert.pem") + os.environ["REQUESTS_CA_BUNDLE"] = os.path.join(pyfaPath, "cacert.pem").encode('utf8') + os.environ["SSL_CERT_FILE"] = os.path.join(pyfaPath, "cacert.pem").encode('utf8') _format = '%(asctime)s %(name)-24s %(levelname)-8s %(message)s' logging.basicConfig(format=_format, level=logLevel) @@ -141,6 +141,7 @@ def defPaths(customSavePath): eos.config.saveddata_connectionstring = "sqlite:///" + saveDB + "?check_same_thread=False" eos.config.gamedata_connectionstring = "sqlite:///" + gameDB + "?check_same_thread=False" +# Keeping disabled code here for now until we can determine with decent certainty that this isn't needed ''' def getPyfaPath(Append=None): base = getattr(sys.modules['__main__'], "__file__", sys.executable) if isFrozen() else sys.argv[0]