...
This commit is contained in:
12
examples/tmuxrunnerexamples/functions/hpy.sh
Normal file
12
examples/tmuxrunnerexamples/functions/hpy.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
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 doesn’t pollute caller
|
||||
(
|
||||
source .venv/bin/activate
|
||||
python "$@"
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user