mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-23 21:37:55 +05:00
Do not use Python 3.6 constructs.
We must keep Python 3.5 compatibility as this is the latest version on Debian 9.
This commit is contained in:
parent
f696404ceb
commit
6fd9b84f2f
@ -51,7 +51,7 @@ def set_env(args):
|
|||||||
for resource_file in [i for i in os.listdir(resource_dir) \
|
for resource_file in [i for i in os.listdir(resource_dir) \
|
||||||
if osp.isfile(os.path.join(resource_dir, i))]:
|
if osp.isfile(os.path.join(resource_dir, i))]:
|
||||||
# look for resource file (XML) to extract valid plugin name
|
# 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:
|
try:
|
||||||
# get plugin name from 'resources' attribute of 'meshers-group' xml node
|
# get plugin name from 'resources' attribute of 'meshers-group' xml node
|
||||||
# as name extracted from environment variable can be in wrong case
|
# as name extracted from environment variable can be in wrong case
|
||||||
|
Loading…
x
Reference in New Issue
Block a user