diff options
| -rw-r--r-- | allocbench/artifact.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/allocbench/artifact.py b/allocbench/artifact.py index e3126a7..83533d3 100644 --- a/allocbench/artifact.py +++ b/allocbench/artifact.py @@ -22,6 +22,7 @@ Both flavours are version controlled archive with a checksum and git repositorie with a specific checkout. """ +from pathlib import Path from subprocess import CalledProcessError from allocbench.directories import get_allocbench_base_dir @@ -67,6 +68,9 @@ class GitArtifact(Artifact): if not location: location = self.basedir / checkout + # make sure location is a pathlib Path object + location = Path(location) + # check if we have already provided this checkout if location.exists(): try: @@ -151,6 +155,9 @@ class ArchiveArtifact(Artifact): if not location: location = self.basedir / "content" + # make sure location is a pathlib Path object + location = Path(location) + # Check if we already provided the archive at location if location.exists(): return location |
