Skip to content

Commit cd86749

Browse files
committed
fix: ubuntu use python3
1 parent 05a9aa4 commit cd86749

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/hyprwhspr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ if [ -f "$VENV_PYTHON" ]; then
1616
PYTHON_CMD="$VENV_PYTHON"
1717
else
1818
# Fallback to system Python if venv doesn't exist
19-
PYTHON_CMD="python"
19+
PYTHON_CMD="python3"
2020
fi
2121

2222
# Help handling: route any -h/--help or leading "help" to CLI help
2323
for arg in "$@"; do
2424
if [[ "$arg" == "-h" || "$arg" == "--help" ]]; then
25-
exec python "$PACKAGE_ROOT/lib/cli.py" --help
25+
exec python3 "$PACKAGE_ROOT/lib/cli.py" --help
2626
fi
2727
done
2828

2929
if [[ "$1" == "help" ]]; then
30-
exec python "$PACKAGE_ROOT/lib/cli.py" --help
30+
exec python3 "$PACKAGE_ROOT/lib/cli.py" --help
3131
fi
3232

3333
# Subcommands: route to CLI if recognized
@@ -36,7 +36,7 @@ if [[ "$1" == "test" ]]; then
3636
exec "$PYTHON_CMD" "$PACKAGE_ROOT/lib/cli.py" "$@"
3737
fi
3838
if [[ "$1" =~ ^(setup|install|config|waybar|systemd|status|model|validate|uninstall|backend|state|mic-osd)$ ]]; then
39-
exec python "$PACKAGE_ROOT/lib/cli.py" "$@"
39+
exec python3 "$PACKAGE_ROOT/lib/cli.py" "$@"
4040
fi
4141

4242
# Set up CUDA library path if CUDA is installed

0 commit comments

Comments
 (0)