Windows, filename in right case, can it be done simpler ?

2008-11-23 Thread Stef Mientki
hello, when getting a breakpoint from pdb and similar packages, on Windows, the filename is given in lowercase. For the caption of my editor, I need the filename in the correct case. The function below does work reasonable well (path is not in the correct case), but I find it weird and much

Re: Windows, filename in right case, can it be done simpler ?

2008-11-23 Thread Martin v. Löwis
Does anyone has a better solution ? If you have pythonwin, you can use win32file.FindFilesW, passing the lower-cased file name. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows, filename in right case, can it be done simpler ?

2008-11-23 Thread Stef Mientki
Martin v. Löwis wrote: Does anyone has a better solution ? If you have pythonwin, you can use win32file.FindFilesW, passing the lower-cased file name. Thanks Martin, seems to work great. cheers, Stef Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list --