修复中文路径乱码bug

This commit is contained in:
g1879 2020-05-28 00:01:31 +08:00
parent 16917e5d18
commit 68971946fe

View File

@ -59,7 +59,7 @@ class OptionsManager(object):
:return: None
"""
path = path or Path(__file__).parent / 'configs.ini'
self._conf.write(open(path, 'w'))
self._conf.write(open(path, 'w', encoding='utf-8'))
class DriverOptions(Options):