[PyQt] QUrl paths under Windows seem weird

Grzegorz Adam Hankiewicz gradha at titanium.sabren.com
Fri Feb 6 14:42:30 GMT 2009


El 06/02/2009, a las 15:19, Sergio Jovani escribió:

> Hi,
>
> Even it is not a Qt method, you can do it with os.path.normcase().

That function doesn't help at all, did you try it yourself?

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit  
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import os
 >>> os.path.exists(os.path.normcase(u"/C:/Documents and Settings"))
False
 >>> os.path.exists(os.path.normcase(u"C:/Documents and Settings"))
True 



More information about the PyQt mailing list