Skip to content

Commit 36580b4

Browse files
committed
Fix process launch compatibility with Python other versions than 3.11
1 parent e63b9c1 commit 36580b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nebula/scenarios.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def start_nodes_docker(self):
707707
- /bin/bash
708708
- -c
709709
- |
710-
{} && ifconfig && echo '{} host.docker.internal' >> /etc/hosts && python3.11 /nebula/nebula/node.py {}
710+
{} && ifconfig && echo '{} host.docker.internal' >> /etc/hosts && python /nebula/nebula/node.py {}
711711
networks:
712712
nebula-net-scenario:
713713
ipv4_address: {}
@@ -735,7 +735,7 @@ def start_nodes_docker(self):
735735
- /bin/bash
736736
- -c
737737
- |
738-
{} && ifconfig && echo '{} host.docker.internal' >> /etc/hosts && python3.11 /nebula/nebula/node.py {}
738+
{} && ifconfig && echo '{} host.docker.internal' >> /etc/hosts && python /nebula/nebula/node.py {}
739739
deploy:
740740
resources:
741741
reservations:
@@ -958,7 +958,7 @@ def start_nodes_process(self):
958958
commands += "sleep 2\n"
959959
commands += f'echo "Running node {node["device_args"]["idx"]}..."\n'
960960
commands += f"OUT_FILE={self.root_path}/app/logs/{self.scenario_name}/participant_{node['device_args']['idx']}.out\n"
961-
commands += f"python3.11 {self.root_path}/nebula/node.py {self.root_path}/app/config/{self.scenario_name}/participant_{node['device_args']['idx']}.json > $OUT_FILE 2>&1 &\n"
961+
commands += f"python {self.root_path}/nebula/node.py {self.root_path}/app/config/{self.scenario_name}/participant_{node['device_args']['idx']}.json > $OUT_FILE 2>&1 &\n"
962962
commands += "echo $! >> $PID_FILE\n\n"
963963

964964
commands += 'echo "All nodes started. PIDs stored in $PID_FILE"\n'

0 commit comments

Comments
 (0)