Possible Duplicate:
How do I watch a file for changes using Python?
I'm trying to work on an idea that requires monitoring files to see if they're being accessed by an application.
For example, lets say I have Photoshop open, and it's trying to access a brush file, I'd like to have a Python script that'll know when the file is being accessed. What would be the best approach to doing something like this? Any help is appreciated, thanks!