From 16444bad601a098f25100eddc61db0afbf3320fd Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 8 Aug 2018 15:50:16 +0300 Subject: [PATCH] Exception in salome_pluginsmanager.py when loading geom_plugins.py --- src/SalomeApp/salome_pluginsmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/SalomeApp/salome_pluginsmanager.py diff --git a/src/SalomeApp/salome_pluginsmanager.py b/src/SalomeApp/salome_pluginsmanager.py old mode 100644 new mode 100755 index c6bc59f1e..918bf871b --- a/src/SalomeApp/salome_pluginsmanager.py +++ b/src/SalomeApp/salome_pluginsmanager.py @@ -277,9 +277,9 @@ class PluginsManager: sys.path.insert(0,directory) logger.debug("The directory %s has been added to PYTHONPATH"%directory) try: - exec(compile(open(plugins_file).read(), plugins_file, 'exec'),globals(),{}) + exec(compile(open(plugins_file,'rb').read(), plugins_file, 'exec'),globals(),{}) except: - logger.fatal("Error while loading plugins from file %s"%plugins_file) + logger.critical("Error while loading plugins from file %s"%plugins_file) traceback.print_exc() self.updateMenu() -- 2.39.2