Several options, Charles.&nbsp; <br><br>If they typically work from a particular directory, you can have them copy into that directory a batch file like py.cmd:<br><br>path = %path%;c:\python26;c:\python26\Scripts;c:\python26\tools\scripts;C:\Python26\Lib\idlelib<br>
start &quot;Python Enabled Command Window&quot;<br><br><br>Double clicking on it starts a console window that has Python in the path, and any further console window you open from within it with the start command inherit the same path.<br>
<br>You can omit the idlelib part if you like.<br>
<br>
If you want the Python directories in the path generally, without diddling with the control panel, and if your students are already downloading a few files of yours, you might include pathman.exe from Microsoft&#39;s freely downloadable &quot;Windows Resource Kit&quot; plus another batch file for them to double click on:<br>
<br>add26.cmd:<br><br>pathman /au C:\Python26;c:\python26\tools\scripts;c:\python26\scripts<br><br><br>This changes the global path when you open a console window in the future.<br><br>If you have both 2.6 and 3.0 installed and want to go back and forth between having them as defaults, you can have a batch file like the following and a similar one to do the reverse.<br>
<br>default26.cmd:<br><br>ftype Python.CompiledFile=&quot;C:\Python26\python.exe&quot; &quot;%%1&quot; %%*<br>ftype Python.File=&quot;C:\Python26\python.exe&quot; &quot;%%1&quot; %%*<br>ftype Python.NoConFile=&quot;C:\Python26\pythonw.exe&quot; &quot;%%1&quot; %%*<br>
pathman /rs C:\Python30;c:\python30\tools\scripts;c:\python30\scripts<br>pathman /as C:\Python26;c:\python26\tools\scripts;c:\python26\scripts<br><br><br>The first three lines make the right behavior when selecting a file in the GUI&nbsp; Windows directory browser.<br>
The /rs and /as in the pathman calls refer to the system path.&nbsp; If for some reason you are only manipulating the user path, use /ru and /au.<br><br>Andy Harrington<br><br><br><div class="gmail_quote">On Sat, Dec 13, 2008 at 8:59 AM, csev <span dir="ltr">&lt;<a href="mailto:csev@umich.edu">csev@umich.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I teach a number of classes at the University of Michigan that are about Python and that use Python. &nbsp; &nbsp;We have gone from no Python classes last year to five classes and four teachers that teach Python at UM. &nbsp;We share intro documentation on how to install and set up the environment.<br>

<br>
One thing that really bugs me is that the WIndows Python installer does not add itself to the Path automatically.<br>
<br>
Since I insist that students can be allowed to use Mac&#39;s or PCs - I try to create a similar environment for both and the command line is the lowest common denominator.<br>
<br>
I end up publishing detailed documents and screen casts to get python into your Windows path. &nbsp;It works but it is not where I want students energy focused in the first week of class.<br>
<br>
I am wondering if there is another way.<br>
<br>
I generally do not like IDLE - it uses a socket which can get messed up, bugs in the student&#39;s code seem to mess up the IDE, when a program needs to open a data file - it is hard to force IDLE into a known directory.<br>

<br>
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? &nbsp;And then is there a way to get the output to stop at the end and not disappear when the program finishes?<br>

<br>
I do not like solutions which include adding code to the student programs to do things like pause before terminating or setting the current working directory. The students have enough trouble figuring out the 20 lines of code that matter let alone 5-6 lines of obtuse code to set up the environment.<br>

<br>
I can continue to teach them how to set the PATH variable in Windows - if anyone on this list has a suggestion - I would much appreciate it.<br>
<br>
Thanks.<br>
<br>
Charles Severance<br>
University of Michigan<br>
_______________________________________________<br>
Edu-sig mailing list<br>
<a href="mailto:Edu-sig@python.org" target="_blank">Edu-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/edu-sig" target="_blank">http://mail.python.org/mailman/listinfo/edu-sig</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Andrew N. Harrington<br> &nbsp;Director of Academic Programs<br> &nbsp;Computer Science Department <br> &nbsp;Loyola University Chicago <br> &nbsp;512B Lewis Towers (office) <br> &nbsp;Snail mail to Lewis Towers 416<br>
 &nbsp;820 North Michigan Avenue<br> &nbsp;Chicago, Illinois 60611<br><br><a href="http://www.cs.luc.edu/~anh">http://www.cs.luc.edu/~anh</a><br>Phone: 312-915-7982<br>Fax: &nbsp; &nbsp;312-915-7998<br><a href="mailto:gdp@cs.luc.edu">gdp@cs.luc.edu</a> for graduate administration<br>
<a href="mailto:upd@cs.luc.edu">upd@cs.luc.edu</a> for undergrad administration<br><a href="mailto:aharrin@luc.edu">aharrin@luc.edu</a> as professor<br>