Re: [go-nuts] Using bash to source a python environment

2017-06-16 Thread Shawn Milochik
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

Re: [go-nuts] Using bash to source a python environment

2017-06-16 Thread Lutz Horn
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

[go-nuts] Using bash to source a python environment

2017-06-16 Thread Corina Tudorache
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