feat(slice-1): implement tracer bullet pipeline with PyYAML check and pure-python fallback
This commit is contained in:
1 parent
937acc2548
commit
68802710b0
12 files changed
+331
-1
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Add project root to sys.path when running from source checkout
|
||||
root_dir = Path(__file__).resolve().parent.parent
|
||||
if str(root_dir) not in sys.path:
|
||||
sys.path.insert(0, str(root_dir))
|
||||
|
||||
for candidate in ("/usr/lib/inventory-collector", "/usr/local/lib/inventory-collector"):
|
||||
if candidate not in sys.path and Path(candidate).is_dir():
|
||||
sys.path.insert(0, candidate)
|
||||
|
||||
from inventory_collector.cli import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in new issue
Block a user