From: Pascal Obry Date: Thu, 5 Mar 2020 09:03:37 +0000 (+0100) Subject: Do not use Python 3.6 constructs. X-Git-Tag: V9_5_0a2~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=deb6fe0827edd31f7c03d1e6b305f6d538e22120;p=modules%2Fsmesh.git Do not use Python 3.6 constructs. We must keep Python 3.5 compatibility as this is the latest version on Debian 9. --- 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