12 lines
309 B
Python
12 lines
309 B
Python
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
missing = [
|
|
d
|
|
for d in ["contracts/api", "contracts/database", "contracts/events"]
|
|
if not (ROOT / d).exists()
|
|
]
|
|
if missing:
|
|
raise SystemExit("Missing contract directories: " + ", ".join(missing))
|
|
print("Contracts smoke OK")
|