<font class="yregconfirmgreentxt">Hi everyone,<br><br>I'm trying to run some commands with mingw from python. However, somehow my home directory (for mingw) is being changed when I initialize tk. Here's an example:<br><br>import os<br>from Tkinter import Tk<br>os.system("C:/msys/1.0/bin/sh.exe --login -i -c 'pwd' ") # just print my home directory<br>root = Tk()<br>os.system("C:/msys/1.0/bin/sh.exe --login -i -c 'pwd' ")</font><font class="yregconfirmgreentxt"> # just print my home directory</font><br><font class="yregconfirmgreentxt"><br>^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>output:<br>/home/Pete<br>/c/Documents and Settings/Pete<br><br><br>As you can see, initializing Tk has somehow changed my mingw home directory from "</font><font class="yregconfirmgreentxt">/home/Pete" to "</font><font class="yregconfirmgreentxt">/c/Documents and Settings/Pete". Since "/home/Pete" has my login script, this is a major problem.</font><br><font
class="yregconfirmgreentxt"><br>The actual change happens at _tkinter.create(.....) during Tk().<br><br>Any ideas?<br><br>Thanks,<br>Pete<br></font><p> 
                <hr size=1>Get your email and more, right on the <a href="http://us.rd.yahoo.com/evt=42973/*http://www.yahoo.com/preview"> new Yahoo.com</a>