Fix indentation

Copy-paste error :-)
master
LEdoian 2 years ago
parent 82ab835dfe
commit 4d13f121ff

@ -56,15 +56,15 @@ def gen_bridge_files():
'bridge.conf', 'bridge.conf',
'gen_bridges.sh', 'gen_bridges.sh',
] ]
context = {'bridges': bridges} context = {'bridges': bridges}
loader = jinja2.FileSystemLoader('templates/') loader = jinja2.FileSystemLoader('templates/')
environment = jinja2.Environment(loader=loader, trim_blocks=True, keep_trailing_newline=True) environment = jinja2.Environment(loader=loader, trim_blocks=True, keep_trailing_newline=True)
for f in files: for f in files:
template = environment.get_template(f) template = environment.get_template(f)
template.stream(context).dump('output/' + f) template.stream(context).dump('output/' + f)
mode = os.stat('output/gen_bridges.sh').st_mode mode = os.stat('output/gen_bridges.sh').st_mode
os.chmod('output/gen_bridges.sh', mode | 0o0100) os.chmod('output/gen_bridges.sh', mode | 0o0100)
# Connections # Connections
# dict[ net_num -> [comp_names] # dict[ net_num -> [comp_names]

Loading…
Cancel
Save