Skip to content

Commit efbdab6

Browse files
committed
python: Fixed build_before_run().
1 parent f3e84bf commit efbdab6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/inet/simulation/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,12 @@ def run(self, **kwargs):
421421
"""
422422
return super().run(**kwargs)
423423

424-
def build_before_run(self):
424+
def build_before_run(self, **kwargs):
425425
build_project(**dict(kwargs, simulation_project=self.simulation_project, mode=self.mode))
426426

427427
def run_protected(self, **kwargs):
428428
if self.build:
429-
build_before_run()
429+
self.build_before_run(**kwargs)
430430
return super().run_protected(**kwargs)
431431

432432
def get_simulation_tasks(simulation_project=None, simulation_configs=None, mode=None, debug=None, break_at_event_number=None, break_at_matching_event=None, run_number=None, run_number_filter=None, exclude_run_number_filter=None, sim_time_limit=None, cpu_time_limit=None, concurrent=True, expected_num_tasks=None, simulation_task_class=SimulationTask, multiple_simulation_tasks_class=MultipleSimulationTasks, **kwargs):

0 commit comments

Comments
 (0)