Skip to content

Commit 704e05d

Browse files
committed
Build system version fix
1 parent 230bc32 commit 704e05d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

toolchain/mfc/cfg/lock.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ def __init__(self, user: MFCUser):
2020
"mode": user.modes[0].name,
2121
"version": MFC_LOCK_CURRENT_VERSION
2222
})
23-
23+
2424
data: dict = common.file_load_yaml(common.MFC_LOCK_FILEPATH)
2525

26-
self.mode = data["mode"]
27-
self.mpi = data['mpi']
2826
self.version = int(data.get("version", "0"))
2927

3028
# 0 is the default version in order to accommodate versions of mfc.sh
@@ -36,6 +34,10 @@ def __init__(self, user: MFCUser):
3634
build/ directory and run MFC again. (v{self.version} -> v{MFC_LOCK_CURRENT_VERSION}).\
3735
""")
3836

37+
self.mode = data["mode"]
38+
self.mpi = data['mpi']
39+
40+
3941
def write(self):
4042
common.file_dump_yaml(common.MFC_LOCK_FILEPATH, dataclasses.asdict(self))
4143

0 commit comments

Comments
 (0)