Arnon Sela added the comment:
readlink -f can be replaced by the following sequence:
pushd $fullpath
fullpath=$(pwd -P)
popd
Please note that:
[[ $called != $0 ]] && fullpath="${BASH_SOURCE[@]}" || fullpath=$0
Should be replaced with:
[[ $called != $0 ]] && fullpath="${BASH_SOURCE[0]}" || fullpath=$0
0 instead of @ - that was a misspelling.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30842>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com