On Fri, 2005-19-08 at 20:33 +0200, Trond Andersen wrote:
> I've read the developerworks article about GnomeVFS modules written in
> C and looked into the python bindings (which looks very clean), but I
> could not find information about how one would initialize a python
> based GnomeVFS module.
>
> In the developerworks article the make file copies the configuration
> file and the .so file to $prefix/lib/gnome-vfs-2.0/modules directory.
>
> Question is how this is handled with the python bindings. Is there a
> need for a similar configuration file? Do I have to copy the python
> file(s) to a specific directory?
>
> I'm running Ubuntu Hoary
>
>
> ------ Trond Andersen
In our program, we are using webbrowser calls for help files. On
systems that have gnome we import it and use it. Without gnomevfs it
could not find files. All I had to do to get it working was import
gnomevfs. That's it, nothing else. I don't know if you have to do
anything else for other operations, but that is all that we needed from
it.
[code]
# if using gnome, see if we can import it
try:
import gnome
try:
import gnomevfs
except: # try the depricated module
import gnome.vfs
except ImportError:
# no gnome module
#print >>stderr, ('Module "gnome" not found. '
# 'You will not be able to use gnome to open web pages.')
dprint('LOADERS: Module "gnome" not found. '
'You will not be able to use gnome to open web pages.')
[/code]
--
Brian <[EMAIL PROTECTED]>
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/