mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-05 02:37:50 -04:00
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user