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 <ghempr...@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@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to