mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修复中文路径乱码bug
This commit is contained in:
parent
16917e5d18
commit
68971946fe
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user