From 87ae099766566a0e7dedd503c358625ef562fcde Mon Sep 17 00:00:00 2001 From: pagmatt Date: Tue, 18 Apr 2023 15:02:40 -0400 Subject: [PATCH] improve ns3 command --- sem/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sem/utils.py b/sem/utils.py index e62b0fb..5de9142 100644 --- a/sem/utils.py +++ b/sem/utils.py @@ -111,8 +111,7 @@ def get_command_from_result(script, path, result, debug=False): debug (bool): Whether the command should include the debugging template. """ - command = "python3 " - command += "./ns3 run " if os.path.exists(os.path.join(path, "ns3")) else " ./waf --run " + command = "./ns3 run " if os.path.exists(os.path.join(path, "ns3")) else "python3 ./waf --run " if not debug: command += script + " " + " ".join(