2015-04-07 15:00:25 +00:00
|
|
|
#!/usr/bin/env bash
|
2013-03-13 15:26:12 +00:00
|
|
|
# Copyright 2011 OpenStack Foundation.
|
2011-06-08 14:22:51 +05:30
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
|
2016-01-19 04:07:41 +00:00
|
|
|
tools_path=${tools_path:-$(dirname $0)}
|
|
|
|
venv_path=${venv_path:-${tools_path}}
|
|
|
|
venv_dir=${venv_name:-/../.venv}
|
|
|
|
TOOLS=${tools_path}
|
|
|
|
VENV=${venv:-${venv_path}/${venv_dir}}
|
2013-09-05 06:14:18 +08:00
|
|
|
source $VENV/bin/activate && "$@"
|