mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 06:31:27 +00:00
yang/embedmodel.py: create output dir if needed
For builds with separate build directory, just to be on the safe side. Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
d32ee243af
commit
261e765345
@ -3,11 +3,18 @@
|
||||
# YANG module to C wrapper
|
||||
# written 2018 by David Lamparter, placed in Public Domain.
|
||||
|
||||
import sys, string, re
|
||||
import sys
|
||||
import os
|
||||
import string
|
||||
import re
|
||||
|
||||
inname = sys.argv[1]
|
||||
outname = sys.argv[2]
|
||||
|
||||
outdir = os.path.dirname(os.path.abspath(outname))
|
||||
if not os.path.isdir(outdir):
|
||||
os.makedirs(outdir)
|
||||
|
||||
# these are regexes to avoid a compile-time/host dependency on yang-tools
|
||||
# or python-yang. Cross-compiling FRR is already somewhat involved, no need
|
||||
# to make it even harder.
|
||||
|
Loading…
Reference in New Issue
Block a user