diff options
author | David Lamparter <equinox@diac24.net> | 2019-07-03 14:53:32 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-07-03 15:05:41 +0200 |
commit | c4ca3ef5e780100d5760766379721c1edadaa8b3 (patch) | |
tree | 3c77143f5aea4f8c85fcb995d2b131b77e9ddd3c /python | |
parent | Merge pull request #4608 from donaldsharp/vtysh_pam_helping_hand (diff) | |
download | frr-c4ca3ef5e780100d5760766379721c1edadaa8b3.tar.xz frr-c4ca3ef5e780100d5760766379721c1edadaa8b3.zip |
clippy: find headers relative to source tree
The current directory is in the build tree while running clippy; find
ourselves so we can access headers from the source tree.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/clidef.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/clidef.py b/python/clidef.py index 85464a62d..bc2f5caeb 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' |