jp (blog): fixed path encoding for inotify

This commit is contained in:
Goffi 2018-07-08 11:15:22 +02:00
commit 9e03d02f18

View file

@ -755,7 +755,7 @@ class Preview(base.CommandBase):
def add_watch():
i.add_watch(
self.content_file_path,
self.content_file_path.encode('utf-8'),
mask=inotify.constants.IN_CLOSE_WRITE
| inotify.constants.IN_DELETE_SELF
| inotify.constants.IN_MOVE_SELF,