def setup(self): assert not self.isSetup self.isSetup = True if os.path.isdir(self.path): raise StandardError("Sandbox path already exists %s" % self.path) for c in self.componentsToUse: self.builder.copyComponent(c, self.path) self.initialDigests = digestsInPath(self.path, relative=False)
def changes(self): assert self.isSetup digests = digestsInPath(self.path, relative=False) return differencesBetweenDigests(self.initialDigests, digests)