diff options
author | 2009-08-04 20:46:11 +0000 | |
---|---|---|
committer | 2009-08-04 20:46:11 +0000 | |
commit | 0fe6404923d7746d453448a956c289cad1d3035b (patch) | |
tree | 02d0fe7a454764ec0160b714dbf6b304617766ea | |
parent | Add a variable, whose content is used to check validity of python program. (diff) | |
download | eselect-python-0fe6404923d7746d453448a956c289cad1d3035b.tar.gz eselect-python-0fe6404923d7746d453448a956c289cad1d3035b.tar.bz2 eselect-python-0fe6404923d7746d453448a956c289cad1d3035b.zip |
Make /usr/bin/python a symlink to python-wrapper.
-rw-r--r-- | python.eselect | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python.eselect b/python.eselect index 766d816..6031113 100644 --- a/python.eselect +++ b/python.eselect @@ -25,7 +25,8 @@ find_targets() { } set_python() { - local program="${INTERPRETER_PATH}python" target="${1}" + local symlink="${INTERPRETER_PATH}python" target="${1}" + ln -s python-wrapper "${symlink}" echo "${target}" > "${ENV_D_PATH}/python/config" } @@ -45,7 +46,7 @@ EOF # Try to remove python and python.1 symlinks remove_symlinks() { local symlink symlink_target symlink_target_found - rm -f "${INTERPRETER_PATH}"{idle,pydoc,python-config} &>/dev/null && \ + rm -f "${INTERPRETER_PATH}"{idle,pydoc,python,python-config} &>/dev/null && \ rm -f "${MAN_PATH}"python.1{,.gz,.bz2,.lzma,.xz} &>/dev/null for symlink in "${INTERPRETER_PATH}python"?; do [[ ! -L "${symlink}" ]] && continue |