1 parent 17a9dd9 commit e65b28cCopy full SHA for e65b28c
1 file changed
scripts/check_protocol_constants.py
@@ -3,14 +3,18 @@
3
4
from __future__ import annotations
5
6
+import sys
7
from pathlib import Path
8
-from scripts.lib.protocol_constants import (
9
+ROOT = Path(__file__).resolve().parents[1]
10
+if str(ROOT) not in sys.path:
11
+ sys.path.insert(0, str(ROOT))
12
+
13
+from scripts.lib.protocol_constants import ( # noqa: E402
14
CANONICAL_RELATION_TYPES,
15
VERDICT_LEVELS,
16
)
17
-ROOT = Path(__file__).resolve().parents[1]
18
ENUMS = ROOT / 'protocol' / 'enums.md'
19
LINK_TYPES = ROOT / 'protocol' / 'link-types.md'
20
CEDV_SCHEMA = ROOT / 'protocol' / 'cedv' / 'canonical-object-schema-v1.md'
0 commit comments