summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2016-11-09 22:47:05 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2016-11-12 22:17:10 -0500
commitf30db4cd555215063a3b016eb77f001e9cf504b6 (patch)
treef70773e5aa57afe9bb998781d6aca231a90cc1fc
parent79d8f7ab9717de2c8f89df13a4c0bd1d27c8c125 (diff)
downloadphosphor-inventory-manager-f30db4cd555215063a3b016eb77f001e9cf504b6.tar.gz
phosphor-inventory-manager-f30db4cd555215063a3b016eb77f001e9cf504b6.zip
Find examples directory when invoked out of tree
Change-Id: I5d5a7024c5145b0acd5961f4b942bbff635e94cb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rwxr-xr-xpimgen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimgen.py b/pimgen.py
index 1b10dd9..b511dd4 100755
--- a/pimgen.py
+++ b/pimgen.py
@@ -29,7 +29,7 @@ if __name__ == '__main__':
default='generated.cpp', help='Output file name.')
parser.add_argument(
'-d', '--dir', dest='inputdir',
- default='example',
+ default=os.path.join(script_dir, 'example'),
help='Location of files to process.')
args = parser.parse_args()
OpenPOWER on IntegriCloud