diff 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
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_blog.py	Wed Jul 04 08:00:19 2018 +0200
+++ b/sat_frontends/jp/cmd_blog.py	Sun Jul 08 11:15:22 2018 +0200
@@ -755,7 +755,7 @@
 
             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,