From 225e74a334db4b4751f340111e3cbcead172c6a0 Mon Sep 17 00:00:00 2001 From: Aldo Bleeker Date: Wed, 9 Dec 2020 17:34:24 +0100 Subject: [PATCH] Small fix to make Obok help work. --- Obok_plugin/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Obok_plugin/action.py b/Obok_plugin/action.py index e94204f..1a4515b 100644 --- a/Obok_plugin/action.py +++ b/Obok_plugin/action.py @@ -197,7 +197,7 @@ class InterfacePluginAction(InterfaceAction): # We will write the help file out every time, in case the user upgrades the plugin zip # and there is a newer help file contained within it. file_path = os.path.join(config_dir, 'plugins', HELPFILE_NAME) - file_data = self.load_resources(HELPFILE_NAME)[HELPFILE_NAME] + file_data = self.load_resources(HELPFILE_NAME)[HELPFILE_NAME].decode('utf-8') with open(file_path,'w') as f: f.write(file_data) return file_path