Problem with Python on MAC OSX

edadk e.d.andersen at
Tue Jun 29 09:33:07 CEST 2004


I have problem with Python on MAC OSX. The following code documents it

strib:~ eda$ pwd
strib:~ eda$ python
Python 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.getcwd()

Note I would have expected

print os.getcwd()

to print


Note that

>>> os.system('echo $PWD')

Of course /home/eda is a symbolic link to /private/home/eda. Is this a
bug or a feature? Is there a good way to work around it?



More information about the Python-list mailing list