Skip to content

Commit 5522e80

Browse files
authored
Fix floor_version to use major and minor from version (#99)
made it more generic way
1 parent ca0f0e4 commit 5522e80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clr_loader/util/runtime_spec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def tfm(self) -> str:
1818

1919
@property
2020
def floor_version(self) -> str:
21-
return f"{self.version[:3]}.0"
21+
major, minor, _ = self.version.split(".")
22+
return f"{major}.{minor}.0"
2223

2324
@property
2425
def runtime_config(self) -> Dict[str, Any]:

0 commit comments

Comments
 (0)