<div dir="ltr">Hi Jim,<br><div class="gmail_extra"><br><div class="gmail_quote">On 8 July 2014 21:45, Jim Byrnes <span dir="ltr"><<a href="mailto:jf_byrnes@comcast.net" target="_blank">jf_byrnes@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I would like to automate running virtualenv with a python script by:<br>

<br>
opening gnome-terminal<br>
cd to proper directory<br>
run source /bin/activate<br>
<br>
I found some examples of using os.system() to get gnome-terminal to open but I can't figure out how then cd to the proper directory in the new terminal.<br>
<br>
My biggest frustration right now is that I can't find any documentation on how to use os.system().  Looking at the docs on the Python site I don't see system() under the os module.  Googling hasn't helped.<br>
<br></blockquote><div><br></div><div>Could you explain what you're trying to achieve?  Virtualenv is about setting up an OS/Unix shell environment (For Windows there's a Powershell variant of virtualenv...) so that a custom Python installation is used by default instead of the system wide on (including possibly using a custom Python executable.)  It therefore seems that trying to automate "activating" a virtualenv with python (which presumably would use the system wide python) is not adding much value? Hence my question: What are you actually trying to achieve?</div>
<div><br></div><div>Walter</div></div></div></div>