This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author PyAcrisel
Recipients PyAcrisel
Date 2017-07-03.19:36:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499110607.19.0.325548288138.issue30842@psf.upfronthosting.co.za>
In-reply-to
Content
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`
History
Date User Action Args
2017-07-03 19:36:47PyAcriselsetrecipients: + PyAcrisel
2017-07-03 19:36:47PyAcriselsetmessageid: <1499110607.19.0.325548288138.issue30842@psf.upfronthosting.co.za>
2017-07-03 19:36:47PyAcrisellinkissue30842 messages
2017-07-03 19:36:47PyAcriselcreate