Message297611
Remove hard coded path in activate family of virtualenv scripts.
Currently, VIRTUAL_ENV is set hard coded. Event after --relocatable
Instead, change to have is defined dynamically:
E.g. bash:
called=$_
[[ $called != $0 ]] && fullpath="${BASH_SOURCE[@]}" || fullpath=$0
fullpath=$(readlink -f $fullpath)
VIRTUAL_ENV=$(dirname $(dirname $fullpath))
E.g. tcsh:
set sourced=($_)
if ("$sourced" != "") then
set fullpath="$sourced[2]"
endif
if ("$0" != "tcsh") then
set fullpath="$0"
endif
set fullpath=`readlink -f $fullpath`
set binpath=`dirname $fullpath`
setenv VIRTUAL_ENV `dirname $binpath` |
|
Date |
User |
Action |
Args |
2017-07-03 19:36:47 | PyAcrisel | set | recipients:
+ PyAcrisel |
2017-07-03 19:36:47 | PyAcrisel | set | messageid: <1499110607.19.0.325548288138.issue30842@psf.upfronthosting.co.za> |
2017-07-03 19:36:47 | PyAcrisel | link | issue30842 messages |
2017-07-03 19:36:47 | PyAcrisel | create | |
|