blob: 357f9096bcef07236320b600d3074a8a3909b2f2 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
python_path=$(python -c 'import sys;print sys.version[:3]')
python_path="/usr/lib/python${python_path}/site-packages/chromite"
if [ ! -L "${python_path}" ]; then
sudo rm -rf --one-file-system "${python_path}" \
"/home/${PORTAGE_USERNAME:-${SUDO_USER:-${USER}}}/.local/lib/python2.6/site-packages/chromite"
sudo mkdir -p "$(dirname "${python_path}")"
sudo ln -s "${CHROOT_TRUNK_DIR}"/chromite "${python_path}"
fi
exit 0