diff options
| author | Brad Bishop <bradleyb@us.ibm.com> | 2016-11-10 09:29:09 -0500 |
|---|---|---|
| committer | Brad Bishop <bradleyb@us.ibm.com> | 2016-11-10 09:30:23 -0500 |
| commit | 339068712a3fd8d04722be508f85ef5531991ece (patch) | |
| tree | 12706bce90a4b0176be82bf920aca7139d1aaa06 /tools/sdbus++ | |
| parent | cd977611ccc2e124587542e78833cc39743296e5 (diff) | |
| download | sdbusplus-339068712a3fd8d04722be508f85ef5531991ece.tar.gz sdbusplus-339068712a3fd8d04722be508f85ef5531991ece.zip | |
Move templates
Enabling use of package_data in a setup.py.
Change-Id: Ic1423033c0607e1527b0eb31638605b53f0ccc83
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'tools/sdbus++')
| -rwxr-xr-x | tools/sdbus++ | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/sdbus++ b/tools/sdbus++ index 76998c9..6b0a15c 100755 --- a/tools/sdbus++ +++ b/tools/sdbus++ @@ -3,6 +3,7 @@ import sdbusplus import mako.lookup import argparse import sys +import os def main(): @@ -16,8 +17,8 @@ def main(): parser.add_argument('-r', '--rootdir', dest='rootdir', default='example', type=str, help='Location of files to process.') parser.add_argument('-t', '--templatedir', dest='templatedir', - default='templates', type=str, - help='Location of templates files.') + default=os.path.join('sdbusplus', 'templates'), + type=str, help='Location of templates files.') parser.add_argument('typeName', metavar='TYPE', type=str, choices=valid_types.keys(), help='Type to operate on.') parser.add_argument('process', metavar='PROCESS', type=str, |

