From 9c953ad45dc28d8c8b2a3af02da4eb807e273ccb Mon Sep 17 00:00:00 2001 From: crouzet Date: Fri, 11 Mar 2022 11:53:19 +0100 Subject: [PATCH] =?utf8?q?spns=20#29157=20:=20d=C3=A9placement=20import=20?= =?utf8?q?imp=20pour=20ne=20pas=20avoir=20en=20standard=20de=20message=20i?= =?utf8?q?mp=20obsolete?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/fileEnviron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileEnviron.py b/src/fileEnviron.py index 947b8ba..5afc9e7 100644 --- a/src/fileEnviron.py +++ b/src/fileEnviron.py @@ -762,7 +762,6 @@ import os import sys import subprocess import os.path -import imp # Add the pwdPath to able to run the launcher after unpacking a package # Used only in case of a salomeTools package @@ -837,7 +836,6 @@ import os import sys import subprocess import os.path -import imp # Add the pwdPath to able to run the launcher after unpacking a package # Used only in case of a salomeTools package @@ -913,6 +911,7 @@ launcher_tail_py2="""\ extradir=out_dir_Path + r"/extra.env.d" if os.path.exists(extradir): + import imp sys.path.insert(0, os.path.join(os.getcwd(), extradir)) for filename in sorted( filter(lambda x: os.path.isfile(os.path.join(extradir, x)), @@ -966,6 +965,7 @@ launcher_tail_py3="""\ extradir=out_dir_Path + r"/extra.env.d" if os.path.exists(extradir): + import imp sys.path.insert(0, os.path.join(os.getcwd(), extradir)) for filename in sorted( filter(lambda x: os.path.isfile(os.path.join(extradir, x)), -- 2.30.2