Skip to content

Commit

Permalink
Fix nox when HOME not set
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDufall committed Jun 1, 2021
1 parent 99d4344 commit 3fddc50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
IRIS_SOURCE = os.environ.get("IRIS_SOURCE", ['source', 'conda-forge'])

#: Default cartopy cache directory.
CARTOPY_CACHE_DIR = os.environ.get("HOME") / Path(".local/share/cartopy")
if os.getenv("HOME"):
CARTOPY_CACHE_DIR = Path(os.getenv("HOME")) / ".local/share/cartopy"
else:
CARTOPY_CACHE_DIR = None


def venv_cached(session, requirements_file=None):
Expand Down

0 comments on commit 3fddc50

Please sign in to comment.