Files
Polisher-Control/scripts/print_tree.py

12 lines
298 B
Python
Raw Normal View History

#!/usr/bin/env python3
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
for path in sorted(ROOT.rglob("*")):
if ".git" in path.parts or "__pycache__" in path.parts:
continue
rel = path.relative_to(ROOT)
if len(rel.parts) > 4:
continue
print(rel)