PDA

View Full Version : python gconf



c2483
October 15th, 2005, 09:26 PM
I'm fairly new to python but i''ve been programming for awhile.
i found one example python script that would change the desktop wallpaper.
it uses the gconf module. When I try to run it however, I get
line 4: import: command not found

i tried installing some other packages, maybe not the right one

i have other modules working with import such as
import os

how do i get this working

pavpan
June 27th, 2007, 08:45 PM
did you install python-gconf?

duff
June 28th, 2007, 03:41 AM
that sounds like you aren't using the python interpreter. Make sure the script starts with the line
#!/usr/bin/env pythonThat has to be the very first line, no line breaks or comments are allowed before that line.

altonbr
January 15th, 2008, 05:25 PM
I'm fairly new to python but i''ve been programming for awhile.
i found one example python script that would change the desktop wallpaper.
it uses the gconf module. When I try to run it however, I get
line 4: import: command not found

i tried installing some other packages, maybe not the right one

i have other modules working with import such as
import os

how do i get this working

Hey c2483, what tutorial is this? I'm new to Python and would like to know how to edit gconf as well...

Cherry Cotton
July 3rd, 2008, 09:51 AM
Hey c2483, what tutorial is this? I'm new to Python and would like to know how to edit gconf as well...

I think it's here: http://therning.org/magnus/archives/57

EDIT: Also, if you have python-gconf installed, you can look in /usr/share/doc/python-gconf/examples/ for some example scripts.