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
Hi. I am trying to source a python environment in go. I run this
command:cmd := exec.Command("/bin/sh", "-c", ". /path to python
environment/bin/activate"), but actually yhe environment is not activated.
I don't know what I am missing. Any tip is much appreciated. :)
--
You received this messa