PDA

View Full Version : Problem with SetValue: CreateDirectory, cant create dir



hackerdude
April 14th, 2009, 03:02 PM
I have a more or less working plugin now, and I am trying to save settings. I have something similar to the following:



import mc

config = mc.GetApp().GetLocalConfig()
test_info = config.GetValue("test_info")
print "Test Info: " + test_info


Later on..



test_info = mc.ShowDialogKeyboard('Some Text', '', 0)
config.Reset('test_info')
config.SetValue("test_info", test_info)


On the log, I get this when SetValue gets called:


CreateDirectory, cant create dir <>. trying lower case


And the value is not on the next call of GetValue.

I'm sure I'm just not setting the filename, but I don't see where to do it on the docs. Can anybody help?

Thanks!

junda
May 26th, 2009, 12:04 PM
your code seems right, no need for file name, have you tried the latest boxee?

I use similar code for my facebook photo app, and it works well.
http://forum.boxee.tv/showthread.php?t=9018