diff --git a/bmc-tools.py b/bmc-tools.py index 73f8d53..535db9f 100755 --- a/bmc-tools.py +++ b/bmc-tools.py @@ -324,9 +324,6 @@ def b_uncompress(self, data, bbp): bro = -1 return d_out def b_export(self, dname): - if not os.path.isdir(dname): - self.b_log(sys.stderr, False, 3, "Destination must be an already existing folder.") - return False self.fname = os.path.basename(self.fname) for i in range(len(self.bmps)): self.b_write(os.path.join(dname, "%s_%04d.bmp" % (self.fname, i)), self.b_export_bmp(64, len(self.bmps[i])//256, self.bmps[i])) @@ -366,9 +363,12 @@ def b_export_bmp(self, width, height, data): else: return b"BM"+pack("