From: crouzet Date: Fri, 11 Mar 2022 10:53:19 +0000 (+0100) Subject: spns #29157 : déplacement import imp pour ne pas avoir en standard de message imp... X-Git-Tag: V9_9_0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c953ad45dc28d8c8b2a3af02da4eb807e273ccb;p=tools%2Fsat.git spns #29157 : déplacement import imp pour ne pas avoir en standard de message imp obsolete --- 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)),