Browse Source

First Demo

master
mahmood19227 1 year ago
parent
commit
9f4b16fe97
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      simulatorManager.py

+ 2
- 1
simulatorManager.py View File

@@ -34,7 +34,8 @@ if __name__=='__main__':
if proc.info['name'] == process_name and len(proc.info['cmdline']) > 1 and proc.info['cmdline'][1] == simulation_id: if proc.info['name'] == process_name and len(proc.info['cmdline']) > 1 and proc.info['cmdline'][1] == simulation_id:
process_exists = True process_exists = True
break break
if not process_exists:
if not simulation_id in runnings: #process_exists:
runnings.append(simulation_id)
command = ['./SimulationCore2', redis_address,str(redis_port),redis_password,simulation_id,str(log_level),str(stepTime)] command = ['./SimulationCore2', redis_address,str(redis_port),redis_password,simulation_id,str(log_level),str(stepTime)]
print(command) print(command)
subprocess.Popen(command, cwd=work_dir) subprocess.Popen(command, cwd=work_dir)


Loading…
Cancel
Save