On Wed, 2003-08-06 at 12:07, James Sparenberg wrote:
> > import fileinput
> > for line in fileinput.input(["$HOME/.kde/share/config/kdeglobals"]):
> > key,val = line.split("=")
> > ...
> >
> > HTH
>
> K it's a start time to play......
this will work in python 2.2 or above, (perhaps crude but it works!):
for line in open("/home/james/.kde/share/config/kdeglobals"):
try:
key,val = line.split("=")
print val
except:
pass
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com