nova/tools/with_venv.sh
Bhuvan Arumugam e2f031c321 Fix venv wrapper to clean *.pyc.
Bug: 1021392

With this fix the commands executed within virtual environment,
including find command, are executed successfully.

* tools/with_venv.sh
  Enclose command to execute in virtual environment within quotes.

Change-Id: I886d70097090578e83adc20318600d16cc5ebead
2012-07-13 23:04:54 -07:00

5 lines
86 B
Bash
Executable File

#!/bin/bash
TOOLS=`dirname $0`
VENV=$TOOLS/../.venv
source $VENV/bin/activate && "$@"