[Tutor] How can I open and use gnome-terminal from a Python script?

Walter Prins wprins at gmail.com
Wed Jul 9 23:16:01 CEST 2014


Hi Jim,

On 9 July 2014 14:43, Jim Byrnes <jf_byrnes at comcast.net> wrote:

> On 07/09/2014 04:27 AM, Walter Prins wrote:
>
>> I forgot to mention I am using Linux (Ubuntu 12.04).
>>
>
> I am working my way through a book about breezypythongui which uses Python
> 3, hence virtualenv.  I found that each time I started to work with it I
> did the above 3 steps, I was just looking to automatic that repetitive task.
>

In that case you should put these commands in your .bashrc file so it gets
set up as your user's default.  (The .bashrc file is somewhat like DOS's
"autoexec.bat" file, if you're familiar with this, except each user has
their own .bashrc.)  You can also create a shell script that does this for
you.  (You can install "virtualenv wrapper" which gives you some further
commands to make working with virtualenvs easier.)

Regards

Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140709/6bd1e68b/attachment.html>


More information about the Tutor mailing list