Fix reports (#227)

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
merwanehamadi
2023-07-31 19:39:49 -07:00
committed by GitHub
parent a14ddcd6af
commit 46dce97c4e

View File

@@ -188,7 +188,7 @@ def assign_paths(folder_path: Path) -> tuple[str, str, str, str, str]:
# if the user has a locally defined challenges path that they've added tests to
CHALLENGES_PATH = str(folder_path / "challenges")
if not os.path.exists(CHALLENGES_PATH):
Path(__file__).parent / "challenges"
CHALLENGES_PATH = str(Path(__file__).parent.parent / "challenges")
if not os.path.exists(reports_location):
os.makedirs(reports_location)