mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-23 14:41:33 -04:00
3de344a67f
* github projects * add project prefixes
9 lines
199 B
Python
9 lines
199 B
Python
import yaml, pathlib
|
|
|
|
class StateFile:
|
|
data = None
|
|
|
|
@classmethod
|
|
def load(self, file_name: pathlib.Path):
|
|
with open(file_name, 'r') as f:
|
|
self.data = yaml.safe_load(f) |