summaryrefslogtreecommitdiff
path: root/python/clidef.py
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2019-07-03 13:28:23 -0400
committerGitHub <noreply@github.com>2019-07-03 13:28:23 -0400
commit76cff933c234e7d69a317a1437e2cd3482ed773e (patch)
treee392ca9eda7b85934434cd52c98355e73d720e94 /python/clidef.py
parentd930406c16e37902eac5c0772ab47610177cb100 (diff)
parent94c4f72dcf9d5851e72633cfc2e01dfa83c0942b (diff)
Merge pull request #4637 from opensourcerouting/fixes-20190703
isisd printfrr & clippy fixes
Diffstat (limited to 'python/clidef.py')
-rw-r--r--python/clidef.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/clidef.py b/python/clidef.py
index 85464a62d4..bc2f5caebf 100644
--- a/python/clidef.py
+++ b/python/clidef.py
@@ -346,9 +346,11 @@ if __name__ == '__main__':
if args.show:
dumpfd = sys.stderr
+ basepath = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
macros = Macros()
macros.load('lib/route_types.h')
- macros.load('lib/command.h')
+ macros.load(os.path.join(basepath, 'lib/command.h'))
# sigh :(
macros['PROTO_REDIST_STR'] = 'FRR_REDIST_STR_ISISD'