mirror of
https://github.com/zeldaret/tp
synced 2026-07-08 22:44:44 -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