fix for base executable with non-ascii characters on windows

This commit is contained in:
Anthony Sottile
2020-11-25 12:42:58 -08:00
parent 029f9cca97
commit 7486dee082
2 changed files with 8 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ def _version_info(exe: str) -> str:
def _read_pyvenv_cfg(filename: str) -> Dict[str, str]:
ret = {}
with open(filename) as f:
with open(filename, encoding='UTF-8') as f:
for line in f:
try:
k, v = line.split('=')