[PyQt] QUrl paths under Windows seem weird

Sergio Jovani lesergi at gmail.com
Fri Feb 6 17:53:51 GMT 2009


A Divendres 06 Febrer 2009 15:42:30, Grzegorz Adam Hankiewicz va escriure:
> 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
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Oh, sorry, I did not understood, I thought you wanted only change / for \. 
That is strange, maybe a PyQt bug?



More information about the PyQt mailing list