makedirs, not mkdirs
This commit is contained in:
parent
b49199c7d1
commit
e8baafa3b8
@ -97,7 +97,7 @@ def check():
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
if not os.path.exists(os.path.dirname(get_config_file())):
|
if not os.path.exists(os.path.dirname(get_config_file())):
|
||||||
os.path.makedirs(os.path.dirname(get_config_file()))
|
os.makedirs(os.path.dirname(get_config_file()))
|
||||||
if not os.path.isfile(get_config_file()):
|
if not os.path.isfile(get_config_file()):
|
||||||
open(get_config_file(), 'a', encoding="utf8").close()
|
open(get_config_file(), 'a', encoding="utf8").close()
|
||||||
save()
|
save()
|
||||||
|
Loading…
Reference in New Issue
Block a user