root / unicode.py

Revision da4f72c38ed31111d447c64efd78cf500beabf73, 191 bytes (checked in by Sebastien Martini <ookoi@…>, 6 months ago)

* Fix segmentation fault reported by dougfort@…, but not

sure if the way it is fixed doesn't introduce limitations on encodings.

* event.pathname represents now an absolute path.

* Fix display of events.

  • Property mode set to 100644
Line 
1from pyinotify import *
2
3log.setLevel(10)
4wm = WatchManager()
5notifier = Notifier(wm)
6path = u'/tmp'
7wdd = wm.add_watch(path, IN_OPEN)
8wm.update_watch(wdd[path], ALL_EVENTS)
9
10notifier.loop()
Note: See TracBrowser for help on using the browser.