<div>Hi Fernando.</div>
<div> </div>
<div>Thanks very much for your helpful reply.</div>
<div> </div>
<div>I tried the things you suggested with the following interesting results:</div>
<div> </div>
<div> ....I said python</div>
<div> </div>
<div><br><strong>Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> import os
<br>>>> os.getcwd()<br>'C:\\Documents and Settings\\Rob Marino' <br>>>> type(os.getcwd())<br><type 'str'><br>>>></strong></div>
<div> </div>
<div>However, and here the plot thickens. I fI understand the docs correctly then there should be an win32 native executable called ipython.exe - this does not exist..</div>
<div> </div>
<div>Also, adding the debug lines you provided and stepping thru in wing provides this:</div>
<div> </div>
<div><strong>WARNING: Stream <cin> looks suspicious: it lacks a 'mode' attribute.<br>*** DBG *** home dir info: None<br>None<br><type 'NoneType'></strong></div>
<p><strong></strong> </p>
<div><strong>Hence its not getting the home dir variable from the os I think. The script I'm trying to run is a toy script I found on ASPN: </strong></div>
<div> </div>
<div><a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410670">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410670</a></div>
<div><strong></strong> </div>
<div><strong>...assuming that IPython is installed correctly then ::::</strong></div>
<div><strong></strong> </div>
<div> # Create the shell object. This steals twisted.internet.reactor<br> # for its own purposes, to make sure you've already installed a<br> # reactor of your choice.<br> shell = IPShellTwisted(<br> argv=[],
<br> user_ns={'__name__': '__example__',<br> 'hello': 'world',<br> },<br> )</div>
<div> </div>
<div>Should be ok. This looks like a good old win32 environment variable problem maybe...</div>
<div> </div>
<div>Thanks for your help.</div>
<div> </div>
<div> </div>
<div><strong>Rob M.</strong></div>
<div><strong></strong> </div>
<div><br> </div>