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 [email protected] > 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? _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
