Skip to content

Commit bbd5b0a

Browse files
committed
Correctly update the global static network config path if given
1 parent e7f639e commit bbd5b0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

simulaqron/run/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,12 @@ def run_applications(
151151
results: List[Dict[str, Any]] = []
152152
if isinstance(network_cfg, str) or isinstance(network_cfg, PathLike):
153153
net_cfg = str(network_cfg)
154+
# If given a network config path, we need to update the global static config property (really bad design choice)
155+
simulaqron_settings.network_config_file = net_cfg
154156
elif isinstance(network_cfg, Path):
155157
net_cfg = str(network_cfg.resolve())
158+
# If given a network config path, we need to update the global static config property (really bad design choice)
159+
simulaqron_settings.network_config_file = net_cfg
156160
else:
157161
net_cfg = None
158162

0 commit comments

Comments
 (0)