Skip to content

Commit 5cf0041

Browse files
authored
ci: fix update of version option in documentation script (#839)
Fix update of version option in documentatio script
1 parent 173878e commit 5cf0041

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/src/versioning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_versions_from_tag(tag: str):
6363

6464
def get_versions(path: Path):
6565
return [
66-
x[0].split("\\")[-1]
66+
Path(x[0]).name
6767
for x in os.walk(path.resolve())
68-
if re.match(r"(?:v(\d+)_(\d+))|latest", x[0].split("\\")[-1])
68+
if re.match(r"(?:v(\d+)_(\d+))|latest", Path(x[0]).name)
6969
]

0 commit comments

Comments
 (0)