Lines 589-596
Link Here
|
589 |
# 2) skip paths which do not exist |
589 |
# 2) skip paths which do not exist |
590 |
# (python2.6 complains about them verbosely) |
590 |
# (python2.6 complains about them verbosely) |
591 |
|
591 |
|
592 |
if [[ ${f} == /* && -d ${D}${f} ]]; then |
592 |
if [[ ${f} == /* && -d ${D%/}${f} ]]; then |
593 |
set -- "${D}${f}" "${@}" |
593 |
set -- "${D%/}${f}" "${@}" |
594 |
fi |
594 |
fi |
595 |
done < <("${PYTHON}" -c 'import sys; print("\0".join(sys.path))') |
595 |
done < <("${PYTHON}" -c 'import sys; print("\0".join(sys.path))') |
596 |
|
596 |
|
Lines 600-607
Link Here
|
600 |
local d |
600 |
local d |
601 |
for d; do |
601 |
for d; do |
602 |
# make sure to get a nice path without // |
602 |
# make sure to get a nice path without // |
603 |
local instpath=${d#${D}} |
603 |
local instpath=${d#${D%/}} |
604 |
instpath=/${instpath##/} |
604 |
[[ ${instpath} =~ ^/*(.*)$ ]] && instpath="/${BASH_REMATCH[1]}" |
605 |
|
605 |
|
606 |
case "${EPYTHON}" in |
606 |
case "${EPYTHON}" in |
607 |
python*) |
607 |
python*) |