python - How do I launch my server and client programs together? -


typically run 3 python files. i.e. manually run:

  • runserver.py wait while run,
  • white.py
  • black.py

the game not start unless run 3 files. files not run successively.i.e. runserver.py not run terminate , white.py start run. it's suppose run concurrently.

i wish automate process such when run runserver.py, automatically run both white.py , black.py , game can proceed.

currently code runserver.py, doesn't work however, code launches board doesn't seem launch white.py or black.py:

board = board.board() white = server.server(1) black = server.server(2) board.playgame(white, black)  execfile("white.py") execfile("black.py") 

any appreciated. thanks!

presumably board.playgame never returns, execution never reaches execfile. use matteo's solution or @ launching board subprocess


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -