Salome HOME
add sat log on http.server 8765
[tools/sat.git] / src / fileEnviron.py
index 74c45330cdec400970772f066baef718fd7e768e..5afc9e76124cff524c1a78bc82f175d44c069ec8 100644 (file)
@@ -761,7 +761,7 @@ launcher_header2="""\
 import os
 import sys
 import subprocess
-
+import os.path
 
 # Add the pwdPath to able to run the launcher after unpacking a package
 # Used only in case of a salomeTools package
@@ -835,7 +835,7 @@ launcher_header3="""\
 import os
 import sys
 import subprocess
-
+import os.path
 
 # Add the pwdPath to able to run the launcher after unpacking a package
 # Used only in case of a salomeTools package
@@ -911,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)),
@@ -964,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)),