Initial public khodo snapshot
publish / publish (push) Successful in 53m2s

This commit is contained in:
khodowany
2026-09-04 19:30:11 -05:00
commit 2750dd7f3a
51 changed files with 5515 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import pathlib
import sys
def repo_root():
current = pathlib.Path(__file__).resolve()
for candidate in (current.parent, *current.parents):
if (candidate / "modulus.json").is_file():
return candidate
raise SystemExit("could not find modulus.json from Modulus tool wrapper")
def run(command):
root = repo_root()
runtime_root = root / "build" / "build_common" / "modulus"
source_root = root / "modulus" / "cli.py"
if source_root.is_file():
sys.path.insert(0, str(root))
elif runtime_root.exists():
sys.path.insert(0, str(runtime_root))
import modulus.cli
raise SystemExit(modulus.cli.main(command))