Python Script Executed with Makefile

后端 未结 3 1597
自闭症患者
自闭症患者 2021-02-14 12:41

I am writing python scripts and execute them in a Makefile. The python script is used to process data in a pipeline. I would like Makefile to execute the script every time I mak

3条回答
  •  抹茶落季
    2021-02-14 12:50

    If you want that Makefile to be automatically "maked" immediately after saving, pyinotify, which is a wrapper for inotify, might be the only possibility under Linux. It registers at the kernel to detect FS changes and calls back your function.

    See my previous post on that topic.

提交回复
热议问题