forked from enderofwings/NexusOS
18 lines
819 B
Bash
18 lines
819 B
Bash
#!/usr/bin/env bash
|
|
# ncp - Linux entry point. The CLI itself is management/cli.py, which runs
|
|
# unchanged on Windows too (see management/ncp.cmd); this stays a shell script
|
|
# because ~/.bashrc, launch_nexus.sh, bin/restore-linux.sh, controlpanel.py,
|
|
# bin/panel/nexus-popup.py and management/nexus-app.sh all invoke this path.
|
|
#
|
|
# Resolved from this file rather than $HOME/nexus-core, so a clone in a scratch
|
|
# directory drives itself instead of reaching into the real install.
|
|
NEXUS_ROOT="$(cd "$(dirname "$(realpath "$0")")/.." && pwd)"
|
|
|
|
# Prefer the project venv for the full desktop dependency set. The portable CLI
|
|
# falls back to system Python when the package is installed without that venv.
|
|
PY="$NEXUS_ROOT/Promethean/bin/python3"
|
|
[ -x "$PY" ] || PY=python3
|
|
|
|
cd "$NEXUS_ROOT"
|
|
exec "$PY" -m management.cli "$@"
|