On 1 November 2011 16:40, Paul Moore
On 1 November 2011 16:29, Paul Moore
wrote: On 31 October 2011 20:10, Carl Meyer
wrote: For Windows, can you point me at the nt scripts? If they aren't too complex, I'd be willing to port to Powershell.
Thanks! They are here: https://bitbucket.org/vinay.sajip/pythonv/src/6d057cfaaf53/Lib/venv/scripts/...
The attached should work. Untested at the moment, I'm afraid, as I don't have access to a PC with the venv branch available. But they aren't complex, so they should be fine.
By the way, these do not need to be dot-sourced to activate/deactivate the venv, but they do need to be dot-sourced to enable the prompt change. As the prompt is more of a cosmetic thing, I'm not sure how crucial that is...
... and of course, to prove that anything untested is wrong, here's a minor fix to deactivate.ps1 :-) Paul.