From a9043e0d0948dd34d2a48a6a698c46843495e97c Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 30 Jan 2013 17:42:33 -0500 Subject: Use new mtimedb "create" method to check whether to populate the database --- scilo/scilo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scilo') diff --git a/scilo/scilo.py b/scilo/scilo.py index 507da53..0b33d69 100644 --- a/scilo/scilo.py +++ b/scilo/scilo.py @@ -31,7 +31,6 @@ class scilo: self.path = os.path.abspath(path) self.name = os.path.basename(self.path) self.settings = npz.settings(self.path) - print("Loading dataset: %s" % (self.name)) if not os.path.exists(path): os.mkdir(os.path.abspath(self.settings.path)) for key in self.settings.directories.iterkeys(): @@ -86,6 +85,8 @@ class scilo: import shutil shutil.copy2(src, dest) self.cache.populate() + if self.mtimedb.create(): + self.mtimedb.populate() return True def select_available(self): -- cgit