[pygtk] PyGTK equivalent to g_filename_from_uri()

Laszlo Pandy laszlok2 at gmail.com
Thu Feb 12 23:18:35 WST 2009


No reason to duplicate the functionality of Python, which already has
URL handling in the standard library.
>>> import urlparse
>>> print urlparse.urlparse("file:///path/to/file").path
/path/to/file


2009/2/12 Luis Gonzalez <ghempresa at hotmail.com>:
>
> Hi,
>
> I see that glib library has g_filename_from_uri() method to get the filename from uri :
> http://library.gnome.org/devel/glib/stable/glib-Character-Set-Conversion.html#g-filename-from-uri
>
> I don't find it into PyGTK, where is PyGTK equivalent to g_filename_from_uri()?
>
> Thanks.
>
> _________________________________________________________________
> News, entertainment and everything you care about at Live.com. Get it now!
> http://www.live.com/getstarted.aspx
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>


More information about the pygtk mailing list