Re: Help needed - To get path of a directory

2010-10-14 Thread Emmanuel Surleau
> Dear Emmanuel, > > Thank you for your reply. > Actually what I want to do is, at the run time I want to know the location > of a specific directory. > Then I will add some file name to the path and load the file. > The directory can reside in any drive, depending on the user. Well... If you don

Re: Help needed - To get path of a directory

2010-10-14 Thread Tim Golden
On 13/10/10 15:26, Bishwarup Banerjee wrote: I want to get the absolute path of the Directory I pass explicitly. Like functionName("\abcd"). On 13/10/2010 05:44, Kingsley Turner wrote: One way to achieve this is to fetch a recursive directory list for all drives, and then search for your direc

Re: Help needed - To get path of a directory

2010-10-13 Thread Lawrence D'Oliveiro
In message , Kingsley Turner wrote: > I don't know how to enumerate all your windows device letters. There are only 26 of them, so you can try them all, right? -- http://mail.python.org/mailman/listinfo/python-list

Re: Help needed - To get path of a directory

2010-10-13 Thread Kingsley Turner
On 13/10/10 15:26, Bishwarup Banerjee wrote: I want to get the absolute path of the Directory I pass explicitly. Like functionName("\abcd"). I should pass the name of the directory and the function should search for it in the Hard drives and return me the full path of location on the drive. I

Re: Help needed - To get path of a directory

2010-10-13 Thread Bishwarup Banerjee
Dear Emmanuel, Thank you for your reply. Actually what I want to do is, at the run time I want to know the location of a specific directory. Then I will add some file name to the path and load the file. The directory can reside in any drive, depending on the user. With Warm Regards, On Wed, Oct

Re: Help needed - To get path of a directory

2010-10-12 Thread Emmanuel Surleau
> Dear All, > > I want to get the absolute path of the Directory I pass explicitly. Like > > functionName("\abcd"). > I should pass the name of the directory and the function should search for > it in the Hard drives and return me the full path of location on the drive. > I tried using os.path, b

Help needed - To get path of a directory

2010-10-12 Thread Bishwarup Banerjee
Dear All, I want to get the absolute path of the Directory I pass explicitly. Like functionName("\abcd"). I should pass the name of the directory and the function should search for it in the Hard drives and return me the full path of location on the drive. I tried using os.path, but didn't succee