3 ms·
> It watches source files, and regenerates the OpenSCAD files automatically inotify() is awesome. Here's a library in python that does it. https://michaelcho
by bb88 5y ago
> It watches source files, and regenerates the OpenSCAD files automatically
inotify() is awesome. Here's a library in python that does it.
https://michaelcho.me/article/using-pythons-watchdog-to-monitor-changes-to-a-directory https://michaelcho.me/article/using-pythons-watchdog-to-moni...
There's also inotifywatch on linux and fswatch on mac which makes it stupidly simple to do the same thing in a shell script. I'm sure there's alternatives for BSD Unix and Windows, but I care the least about those OS's.
https://github.com/emcrisostomo/fswatch https://github.com/emcrisostomo/fswatch
https://linux.die.net/man/1/inotifywatch https://linux.die.net/man/1/inotifywatch