Directory support in pywatch 0.4

The latest release of [pywatch][pywatch-git] now naively supports watching a directory of files.

Previously, if you wanted to watch more than one file you had to list them one by one or use bash glob expansion ala:


pywatch mycommand.sh file1.py file2.py file3.txt
pywatch mycommand.sh ./src/*.py

But you can now pass a directory in and all files and folders will be watched:


pywatch ./bin/test ./src/pywatch

**Note:** It won’t notice new or deleted files, but I’ll hack on that next if anyone has a pressing need for it.

Pywatch grew out of a desire to have something similar to [ZenTest’s autotest][zentest], but it’ll run any command you like whenever a file changes.

I use it almost exclusively to run tests every time I save changes to projects I’m coding at work and on personal projects.

It’s available at [GitHub][pywatch-git] and [PyPI][pywatch-pypi]

[pywatch-git]: http://github.com/cmheisel/pywatch/tree/master
[pywatch-pypi]: http://pypi.python.org/pypi/pywatch/0.3
[zentest]: http://www.zenspider.com/ZSS/Products/ZenTest/

About Chris

Python developer, Agile practitioner trying desperately not to be a pointy haired boss.
This entry was posted in Programming, Python, Pywatch. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s