mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 01:58:35 +05:00
minor correction:
to avoid the critical message of PluginsManager when SMESH_PYPLUGIN_DIR are not declared
This commit is contained in:
parent
49eb5ff195
commit
e60bcaf4a9
@ -122,7 +122,9 @@ import sys
|
|||||||
import importlib
|
import importlib
|
||||||
import importlib.util
|
import importlib.util
|
||||||
|
|
||||||
plugin_dirs = os.getenv("SMESH_PYPLUGIN_DIR").split(":")
|
smesh_pyplugin_dir = os.getenv("SMESH_PYPLUGIN_DIR")
|
||||||
|
if smesh_pyplugin_dir:
|
||||||
|
plugin_dirs = smesh_pyplugin_dir.split(":")
|
||||||
# reverse plugin_dirs list to call smesh python plugin in good order
|
# reverse plugin_dirs list to call smesh python plugin in good order
|
||||||
plugin_dirs.reverse()
|
plugin_dirs.reverse()
|
||||||
for plg_dir in plugin_dirs:
|
for plg_dir in plugin_dirs:
|
||||||
|
Loading…
Reference in New Issue
Block a user