Newbie need help

Dang Griffith noemail at noemail4u.com
Wed Apr 7 08:01:54 EDT 2004


On Mon, 05 Apr 2004 09:28:18 GMT, Tony Ha <tony.ha at philips.com> wrote:

>Question from a newbie. 
>
>In the interactive Python shell.
>
>1. How do I find out where I am in the file system under WindowXP?
>
>   I try os.curdir, which only give '.' back, I would like a full path
>like the Unix 'pwd' give.
>
>2. How do I change directory under WindowXp?
>
>   I try os.chdir('C:\Downloads\Python\SOAPpy-0.11.3\fpconst-0.6.0')
>but I get the following Error message:
>
>Traceback (most recent call last):
>  File "<input>", line 1, in ?
>OSError: [Errno 22] Invalid argument: 'C:\\Downloads\\Python\\SOAPpy-0.11.3
>\x0cpconst-0.6.0'
>
>
>Can any body help, thanks!!
Other folks answers are true, but you also might look into install
IPython.  It's a shell around the standard python interactive shell,
and it provides commands like pwd and cd and so forth.
You can get it at "http://ipython.scipy.org".
    --dang



More information about the Python-list mailing list