Run Graphify
Path:
loom-builder-sol/run_graphify.shRelative: run_graphify.shSubproject: loom-builder-solCategory: scriptsLines: 38Bytes: 1,608Imports: 0Exports: 0
Content Preview
- #!/bin/bash
- PYTHON=""
- GRAPHIFY_BIN=$(which graphify 2>/dev/null)
- if [ -z "$PYTHON" ] && command -v uv >/dev/null 2>&1; then
- _UV_PY=$(uv tool run graphifyy python -c "import sys; print(sys.executable)" 2>/dev/null)
- if [ -n "$_UV_PY" ]; then PYTHON="$_UV_PY"; fi
- fi
- if [ -z "$PYTHON" ] && [ -n "$GRAPHIFY_BIN" ]; then
- _SHEBANG=$(head -1 "$GRAPHIFY_BIN" | tr -d "#!")
- case "$_SHEBANG" in
- *[!a-zA-Z0-9/_.-]*) ;;
- *) "$_SHEBANG" -c "import graphify" 2>/dev/null && PYTHON="$