diff options
| author | Jason Albert <albertj@us.ibm.com> | 2015-03-26 13:06:24 -0500 |
|---|---|---|
| committer | Jason Albert <albertj@us.ibm.com> | 2015-03-26 13:06:24 -0500 |
| commit | 87c41f5cdc83ee757f507448eca220e9a9b80033 (patch) | |
| tree | 7c616ecf8e62c23e9a6a73411d673aaf4652a4d7 | |
| parent | 644a950044686462c1d3cb52a9d28b41f26c141a (diff) | |
| download | vpdtools-87c41f5cdc83ee757f507448eca220e9a9b80033.tar.gz vpdtools-87c41f5cdc83ee757f507448eca220e9a9b80033.zip | |
Updated help text and fixed bug in finding files
| -rwxr-xr-x | createVpd.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/createVpd.py b/createVpd.py index e8bbcb0..9a3fe94 100755 --- a/createVpd.py +++ b/createVpd.py @@ -55,6 +55,11 @@ def help(): out.msg("-r|--binary-records Create binary files for each record in the template") out.msg("-k|--binary-keywords Create binary files for each keyword in the template") out.setIndent(0) + out.msg("Examples") + out.setIndent(2) + out.msg("./createVpd.py -m examples/simple/simple.tvpd -o /tmp") + out.msg("./createVpd.py -m examples/rbinfile/rbinfile.tvpd -i examples/rbinfile -o /tmp") + out.setIndent(0) # Find file in a given path or paths # searchPath comes from the --inpath option @@ -813,7 +818,7 @@ for record in manifest.iter("record"): # Don't error check those cases here again. If rbinfile is found, just go and else the keyword case if (record.find("rbinfile") != None): # Get the name - rbinfile = record.find("rbinfile").text + rbinfile = findFile(record.find("rbinfile").text, clInputPath) # Open the file and stick it into the record recordInfo[recordName].record = open(rbinfile, mode='rb').read() |

