<font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif">Hello! I recently started programming in python (I use IDLE with python 2.7 on ubuntu 11.04, by the way) and recently made a program (no interface) that launches other programs. The problem I'm having is that when I gave my friend the code, he had to get an editor to use the code. How do I make it so that when you open the program, it starts the code (so anyone can use it, not just those who have idle and know ow to program python)? Sorry if this is unclear. I basically want to make a stand- alone command line application (or one that boots in terminal). It's very basic and runs like so (except longer and slightly more complex):</font></font></font><div>
<font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"><br></font></font></font></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
<font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif">loop = 1</font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"><br></font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif">while loop == 1:<br>
</font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"> choice = raw_input(">")<br></font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"> if choice == "prog1":<br>
</font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"> print "Launching Prog1"<br></font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"> os.system("prog1")<br>
</font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"> loop = 0<br></font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"> else:<br>
</font></font></font><font color="#3333ff"><font size="2"><font face="trebuchet ms,sans-serif"> print "invalid program. Try again."</font></font></font></blockquote><div><div><div><div><font color="#3333FF" face="'trebuchet ms', sans-serif"><br>
</font></div><div><font color="#3333FF" face="'trebuchet ms', sans-serif"><br></font></div><div><font color="#3333FF" face="'trebuchet ms', sans-serif">God Bless,</font></div><div><font color="#3333FF" face="'trebuchet ms', sans-serif">Ben Schwabe</font></div>
</div></div><br>
</div>