![]() |
Python inotify can't stop problem !?
Hi,
I'm working on a OCR app. Id like it to behave like this: - disable autostart of camera app on lens open - start camera app on button click - listen to DCIM folder changes (with pyinotify) and on new file created close camera app, write last picture path to file, and use the path further in my application It almost works. I'm having problems with stopping pyinotify. I have a callback function which returns True (should stop the loop). I tried with notify.stop() also, but no effect. It caches the new file name, executes the callback function, but doesn't close the pyinotify, and the application freezes. Here is my code: Code:
class GetPic(pyinotify.ProcessEvent): |
All times are GMT. The time now is 14:53. |
vBulletin® Version 3.8.8