summaryrefslogtreecommitdiffstats
path: root/tools/sdbus++
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2016-11-10 09:29:09 -0500
committerBrad Bishop <bradleyb@us.ibm.com>2016-11-10 09:30:23 -0500
commit339068712a3fd8d04722be508f85ef5531991ece (patch)
tree12706bce90a4b0176be82bf920aca7139d1aaa06 /tools/sdbus++
parentcd977611ccc2e124587542e78833cc39743296e5 (diff)
downloadsdbusplus-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-xtools/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,
OpenPOWER on IntegriCloud