]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Exception in salome_pluginsmanager.py when loading geom_plugins.py
authoreap <eap@opencascade.com>
Wed, 8 Aug 2018 12:50:16 +0000 (15:50 +0300)
committereap <eap@opencascade.com>
Wed, 8 Aug 2018 12:50:16 +0000 (15:50 +0300)
src/SalomeApp/salome_pluginsmanager.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c6bc59f..918bf87
@@ -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()