Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_blog.py @ 2639:266f871fcb4b
jp (blog): fixed path encoding for inotify
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 08 Jul 2018 11:15:22 +0200 |
parents | 56f94936df1e |
children | f69c1b260e49 |
comparison
equal
deleted
inserted
replaced
2638:1152e75d5ea5 | 2639:266f871fcb4b |
---|---|
753 block_duration_s=60 | 753 block_duration_s=60 |
754 ) # no need for 1 s duraction, inotify drive actions here | 754 ) # no need for 1 s duraction, inotify drive actions here |
755 | 755 |
756 def add_watch(): | 756 def add_watch(): |
757 i.add_watch( | 757 i.add_watch( |
758 self.content_file_path, | 758 self.content_file_path.encode('utf-8'), |
759 mask=inotify.constants.IN_CLOSE_WRITE | 759 mask=inotify.constants.IN_CLOSE_WRITE |
760 | inotify.constants.IN_DELETE_SELF | 760 | inotify.constants.IN_DELETE_SELF |
761 | inotify.constants.IN_MOVE_SELF, | 761 | inotify.constants.IN_MOVE_SELF, |
762 ) | 762 ) |
763 | 763 |