Initial commit
This commit is contained in:
15
fighting/config.py
Normal file
15
fighting/config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
import yaml
|
||||
|
||||
|
||||
|
||||
config_file = 'settings.yaml'
|
||||
|
||||
with open(config_file, 'r') as f:
|
||||
c = yaml.safe_load(f)
|
||||
|
||||
data_path = Path(c['storage']['data'])
|
||||
|
||||
config = SimpleNamespace()
|
||||
config.bonus_data_file = data_path / 'bonuses.json'
|
||||
Reference in New Issue
Block a user