X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2Fsmesh_setenv.py;h=578a00e3b87184e7f494c94567885a664130308f;hb=265fc676f541f36cc21363d41067bbccddfef684;hp=6826ab0cefa898fac93585d5a9ce1ef53dfffd9b;hpb=6472eab132825fec572beda8276947593f85ffa1;p=modules%2Fsmesh.git diff --git a/bin/smesh_setenv.py b/bin/smesh_setenv.py index 6826ab0ce..578a00e3b 100644 --- a/bin/smesh_setenv.py +++ b/bin/smesh_setenv.py @@ -51,7 +51,7 @@ def set_env(args): for resource_file in [i for i in os.listdir(resource_dir) \ if osp.isfile(os.path.join(resource_dir, i))]: # look for resource file (XML) to extract valid plugin name - if resource_file.lower() == f'{plugin_lname}.xml': + if resource_file.lower() == '{plugin_lname}.xml'.format(plugin_lname=plugin_lname): try: # get plugin name from 'resources' attribute of 'meshers-group' xml node # as name extracted from environment variable can be in wrong case