18 lines
325 B
Python
18 lines
325 B
Python
# Bryan Schumaker (11/14/2010)
|
|
|
|
from libsaria import trees
|
|
|
|
t = trees.get_pref_tree("prefs")
|
|
t.disp()
|
|
|
|
t.set_pref("libsaria.random", True)
|
|
t.init_pref("libsaria.a.b", 42)
|
|
|
|
print t.get_pref("libsaria.random")
|
|
print t.get_pref("libsaria.a.b")
|
|
|
|
t.set_pref("libsaria.random", False)
|
|
print t.get_pref("libsaria.random")
|
|
|
|
t.disp()
|