How do i watch python source code files and restart when i save?

后端 未结 5 798
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-28 12:27

When I save a python source code file, I want to re-run the script. Is there a command that works like this (sort of like nodemon for node)?

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 13:21

    I just use npx nodemon pythonfile.py and it works.Make sure you are using nodemon v2.0.x or above

提交回复
热议问题