Re: [Python-Dev] File Path retrieving problem

2009-02-25 Thread Paul Moore
2009/2/25 Sudhir Kakumanu : > Hi all, > I am new to Python, i have installed python 2.5.4 and it is my requirement. > I need to retrieve the path of filename in python. This list is for the developers of Python to discuss future changes to the language and its implementation. It is not the correct

[Python-Dev] File Path retrieving problem

2009-02-25 Thread Sudhir Kakumanu
Hi all, I am new to Python, i have installed python 2.5.4 and it is my requirement. I need to retrieve the path of filename in python. I have found some API's to get this: from os.path import realpath print realpath("NEWS.txt") # here NEWS.txt exists and it shows the path of the file as C:\Pyth