Skip to content

Commit

Permalink
improve ns3 command
Browse files Browse the repository at this point in the history
  • Loading branch information
pagmatt committed Apr 18, 2023
1 parent ccbfabe commit 87ae099
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sem/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 87ae099

Please sign in to comment.