Update library in background

This patch adds a function for updating the entire library in the
background.
This commit is contained in:
Bryan Schumaker 2010-12-14 20:37:15 -05:00
parent ed9d853065
commit 588a2bfb7a

View File

@ -305,3 +305,13 @@ def update():
sep = libsaria.path.sep
for path in locations:
update_path(path)
def update_bg2():
update()
save()
def update_bg():
if is_loaded():
from libsaria import threads
thr = threads.BG_Thread(update_bg2)
thr.start()