You've already forked Douyin_Web_Live
intro pyyml
This commit is contained in:
9
config/helper.py
Normal file
9
config/helper.py
Normal file
@ -0,0 +1,9 @@
|
||||
from pathlib import Path
|
||||
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)
|
||||
|
Reference in New Issue
Block a user