diff options
| author | Jason Albert <albertj@us.ibm.com> | 2015-03-16 16:12:44 -0500 |
|---|---|---|
| committer | Jason Albert <albertj@us.ibm.com> | 2015-03-16 16:12:44 -0500 |
| commit | 972758d8eadb4d1cd2776b437263cbc2d2c6e30b (patch) | |
| tree | ed12665f80e7f4601c3c511954baee5abe3617f9 | |
| parent | 28298a0613c3d6220ad031904e5d47c2e94dd9af (diff) | |
| download | vpdtools-972758d8eadb4d1cd2776b437263cbc2d2c6e30b.tar.gz vpdtools-972758d8eadb4d1cd2776b437263cbc2d2c6e30b.zip | |
Fixed bug using bindata where findFile wasn't employed
| -rwxr-xr-x | createVpd.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/createVpd.py b/createVpd.py index 06b043f..e8bbcb0 100755 --- a/createVpd.py +++ b/createVpd.py @@ -836,7 +836,9 @@ for record in manifest.iter("record"): # If the input format is bin, we need to pull the data in from the file # We know the file exists from the check in step 2 if (kwformat == "bin"): - kwdata = open(kwdata, mode='rb').read() + # Get the full path to the file given, error checked before + databinfile = findFile(kwdata, clInputPath) + kwdata = open(databinfile, mode='rb').read() keywordPack = packKeyword(keywordName, kwlen, kwdata, kwformat) recordInfo[recordName].record += keywordPack |

