We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230bc32 commit 704e05dCopy full SHA for 704e05d
toolchain/mfc/cfg/lock.py
@@ -20,11 +20,9 @@ def __init__(self, user: MFCUser):
20
"mode": user.modes[0].name,
21
"version": MFC_LOCK_CURRENT_VERSION
22
})
23
-
+
24
data: dict = common.file_load_yaml(common.MFC_LOCK_FILEPATH)
25
26
- self.mode = data["mode"]
27
- self.mpi = data['mpi']
28
self.version = int(data.get("version", "0"))
29
30
# 0 is the default version in order to accommodate versions of mfc.sh
@@ -36,6 +34,10 @@ def __init__(self, user: MFCUser):
36
34
build/ directory and run MFC again. (v{self.version} -> v{MFC_LOCK_CURRENT_VERSION}).\
37
35
""")
38
+ self.mode = data["mode"]
+ self.mpi = data['mpi']
39
40
41
def write(self):
42
common.file_dump_yaml(common.MFC_LOCK_FILEPATH, dataclasses.asdict(self))
43
0 commit comments