make the kolla-ansible python3 compatible

* remove unused sys
* user print() for python3 compatible

TrivalFix

Change-Id: I65c66d0373cdec19da668c3d911f061ce95d1374
This commit is contained in:
Jeffrey Zhang 2016-01-06 15:31:00 +08:00
parent 8123dbdc62
commit dd6df534cf

View File

@ -3,7 +3,7 @@
# This script can be used to interact with kolla via ansible.
function find_base_dir {
local real_path=$(python -c "import os,sys;print os.path.realpath('$0')")
local real_path=$(python -c "import os;print(os.path.realpath('$0'))")
local dir_name="$(dirname "$real_path")"
if [[ ${dir_name} == "/usr/bin" ]]; then
BASEDIR=/usr/share/kolla