Skip to content

Commit

Permalink
--dest parameter processing fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
yam-anssi committed Aug 10, 2016
1 parent 99bc01c commit a1bf80e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ With the following arguments meaning:
```
## Changelog
```
10/08/2016 1.00b --dest parameter processing fixed.
01/07/2016 1.00a cacheXXXX.bin header detection fixed.
27/06/2016 1.00 Initial release.
```
3 changes: 1 addition & 2 deletions bmc-tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ 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
elif not os.path.isdir(os.path.join(dname, self.fname).rsplit(os.sep, 1)[0]):
os.makedirs(os.path.join(dname, self.fname).rsplit(os.sep, 1)[0])
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]))
if self.oldsave and len(self.o_bmps[i]) > 0:
Expand Down

0 comments on commit a1bf80e

Please sign in to comment.