There was an error while loading. Please reload this page.
1 parent 173878e commit 5cf0041Copy full SHA for 5cf0041
1 file changed
scripts/src/versioning.py
@@ -63,7 +63,7 @@ def get_versions_from_tag(tag: str):
63
64
def get_versions(path: Path):
65
return [
66
- x[0].split("\\")[-1]
+ Path(x[0]).name
67
for x in os.walk(path.resolve())
68
- if re.match(r"(?:v(\d+)_(\d+))|latest", x[0].split("\\")[-1])
+ if re.match(r"(?:v(\d+)_(\d+))|latest", Path(x[0]).name)
69
]
0 commit comments