Skip to content
Snippets Groups Projects
Unverified Commit 53f1cb84 authored by René Fritze's avatar René Fritze
Browse files

[python] fixup codegen for subdirs

parent db210150
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,9 @@ cache, _ = parse_cache(os.path.join(cmake_binary_dir, 'CMakeCache.txt'))
sys.path.append(os.path.dirname(config_fn))
config = run_path(config_fn,init_globals=locals(), run_name='__dxt_codegen__')
dir_base = os.path.dirname(out_fn)
if not os.path.isdir(dir_base):
os.makedirs(dir_base)
template = Template(open(tpl_fn).read())
with open(out_fn, 'w') as out:
out.write(template.render(config=config, cache=cache))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment