<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Dec 13, 2008, at 9:59 , csev wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">Is there a way to use an icon and then start the icon an have the current working directory (i.e. to open data files) be the same directory as the Python file?  And then is there a way to get the output to stop at the end and not disappear when the program finishes?</span></div></blockquote><div><br></div><div>What I do is the following:</div><div><br></div><div>1) I install the enthought version of Python, which puts an icon called Pylab on the desktop.  This is short for ipython -pylab</div><div>2) I have the students make a work folder, and copy the Pylab shortcut to the folder</div><div>3) I have them change the "Start In" property of the icon</div><div>4) (if you don't want all the numerical stuff, then delete the -pylab option while you're in properties)</div><div><br></div><div>then you can use whatever text editor you want (I use SciTE, because it comes with EPD, but you have to change the default tab settings).  The shortcut, when run, will pull up the ipython commandline.  then the students just type:</div><div><br></div><div>run myprog.py</div><div><br></div><div>whenever they want to run things.</div><div><br></div><div>It seems to work ok, and you don't have to muck with the path.</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>bb<br></div><div>-- </div></div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>Brian Blais</div><div><a href="mailto:bblais@bryant.edu">bblais@bryant.edu</a></div><div><a href="http://web.bryant.edu/~bblais">http://web.bryant.edu/~bblais</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span> </div><br></body></html>