瀏覽代碼

First Demo

master
mahmood19227 1 年之前
父節點
當前提交
9f4b16fe97
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      simulatorManager.py

+ 2
- 1
simulatorManager.py 查看文件

@@ -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:
process_exists = True
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)]
print(command)
subprocess.Popen(command, cwd=work_dir)


Loading…
取消
儲存