Files
2025-08-25 07:06:50 +02:00

12 lines
271 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

hpy() {
if [ ! -f ".venv/bin/activate" ]; then
echo "Error: .venv not found in current directory" >&2
return 1
fi
# Activate venv in a subshell so it doesnt pollute caller
(
source .venv/bin/activate
python "$@"
)
}