Skip to content

Commit

Permalink
Make sure cache path exists
Browse files Browse the repository at this point in the history
- Fixes #115
  • Loading branch information
virtuald committed Feb 17, 2024
1 parent 7ae49e9 commit 6e424ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions robotpy_installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ def get_pypi_version(self, package: str, use_certifi: bool) -> Version:
"""
Retrieves the latest version of a package on pypi that corresponds to the current year
"""
self.cache_root.mkdir(parents=True, exist_ok=True)
fname = self.cache_root / f"pypi-{package}.json"
_urlretrieve(
f"https://pypi.org/simple/{package}",
Expand Down

0 comments on commit 6e424ef

Please sign in to comment.