From 82905c2b208300a9a18767522b93ce3a520e29cf Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Tue, 22 Mar 2022 02:03:07 +0100 Subject: [PATCH] Few fixes of the main script --- baz.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/baz.py b/baz.py index fb05ced..d3a0774 100755 --- a/baz.py +++ b/baz.py @@ -39,7 +39,7 @@ class Computer: # Computers: comps = {} -for i, n in enumerate('ABCDEFGHIX'): +for i, n in enumerate('ABCDEFGHIX', start=1): comps[n] = Computer(n, i) # Bridges @@ -72,6 +72,7 @@ for net, cs in conns.items(): for c in cs: comps[c].add_to_bridge(bridges[net]) +os.mkdir('output') dump_bridges('output/bridges') for c in comps.values():