requirements更新

This commit is contained in:
2022-06-06 16:33:17 +08:00
parent 0e8d328e09
commit 224a047da0
2 changed files with 3 additions and 4 deletions

View File

@ -1,9 +1,9 @@
from pathlib import Path
import yaml
from ruamel import yaml
def config():
settings_file = str(Path(__file__).parent.absolute()) + '/settings.yml'
with open(settings_file, 'r') as f:
return yaml.load(f, Loader=yaml.FullLoader)
return yaml.load(f, Loader=yaml.UnsafeLoader)