From e008311aec193c581cfdb9e6187f1f93c4fb6432 Mon Sep 17 00:00:00 2001 From: Mariotaku Date: Mon, 17 Apr 2023 16:47:06 +0900 Subject: [PATCH] using resolved path --- repogen/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repogen/validators.py b/repogen/validators.py index 4d1c28f..8d60965 100644 --- a/repogen/validators.py +++ b/repogen/validators.py @@ -12,7 +12,7 @@ def schemas_dir() -> Path: return Path('content/schemas').resolve() -assert Path(__file__, '../content/schemas').samefile(schemas_dir()) +assert Path(__file__, '../../content/schemas').resolve().samefile(schemas_dir()) def for_schema(rel_path: str) -> Validator: