Even if successful, it happens in a subprocess that your exec.Cmd creates.
It will not affect your own shell session. If you are trying to run a
Python script with exec.Cmd, you can just do that directly:
cmd := exec.Cmd("/path/to/virtualenv/bin/python", "/path/to/your/code.py")
Alternatively, yo
Hi,
cmd := exec.Command("/bin/sh", "-c", ". /path to python
environment/bin/activate")
but actually yhe environment is not activated
How do you check this? What do you want to do *after* this call to
exec.Command?
Lutz
--
You received this message because you are subscribed to the Google