Join GitHub today
--relocatable does not point activate script to the correct path #11
Using Ubuntu 10.04, --relocatable works if I directly invoke the python binary or the setuptools-generated scripts. However, bin/activate still reflects the old path:
This is because VIRTUAL_ENV is set to an absolute path in the script. Instead, this should be made relative when --relocatable is called.
Since the activate script must be sourced, it is a bit more complicated to get the path than just (e.g.)
If this meets with your approval, Ian, I'm glad to write a patch.
Here is a better version for bash:
And for (t)csh:
For windows, in ACTIVATE_BAT you can replace:
This is better than just setting it to
referenced this issue
Mar 6, 2012