From f75711183a0040cfde63a017a19ece11a7f4e1d6 Mon Sep 17 00:00:00 2001 From: JoeZiminski Date: Wed, 26 Jun 2024 16:04:44 +0100 Subject: [PATCH] Continue debugging paths 4. --- .github/scripts/check_kilosort4_releases.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/check_kilosort4_releases.py b/.github/scripts/check_kilosort4_releases.py index b896f6d670..11a042a984 100644 --- a/.github/scripts/check_kilosort4_releases.py +++ b/.github/scripts/check_kilosort4_releases.py @@ -1,6 +1,6 @@ import os import re - +from pathlib import Path import requests import json @@ -15,7 +15,7 @@ def get_pypi_versions(package_name): if __name__ == "__main__": package_name = "kilosort" versions = get_pypi_versions(package_name) - with open(f"{os.path.realpath(__file__).parent}/kilosort4-latest-version.json", "w") as f: + with open(Path(os.path.realpath(__file__)).parent / "kilosort4-latest-version.json", "w") as f: json.dump(versions, f) print("PRINT", os.path.realpath(__file__))