Don't let the system encoding screw with things,

specify opens as happening with utf-8 encoding
This commit is contained in:
michael
2018-02-28 09:37:11 -05:00
parent cf48a13fc7
commit c10e4dddca
3 changed files with 4 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ class Downloader:
self.LIB_PATH.mkdir(parents=True, exist_ok=True)
self.SHAREDLIB_PATH.mkdir(parents=True, exist_ok=True)
if not self.SHAREDLIB_INIT.exists():
with self.SHAREDLIB_INIT.open(mode='w') as _:
with self.SHAREDLIB_INIT.open(mode='w', encoding='utf-8') as _:
pass
if str(self.LIB_PATH) not in syspath: