]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
pythonpath_reduction.py: Only one directory is mandatory
authorGilles DAVID <gilles-g.david@edf.fr>
Fri, 15 Oct 2021 16:42:47 +0000 (18:42 +0200)
committerDUC ANH HOANG <duc-anh-externe.hoang@edf.fr>
Mon, 18 Oct 2021 12:48:27 +0000 (14:48 +0200)
bin/pythonpath_reduction.py

index 0e00d46864b82c5edbdf880f7322cbab217bf173..04a3a723d133d7ca4deb5ec1b7dbfa462cdc5957 100644 (file)
@@ -57,18 +57,18 @@ def copy_or_link(src, dst):
 if sys.version_info[0] < 3:
     raise Exception("Must be using Python 3")
 
+
 def main(salome_install_dir, context_file_name, env_file_name, ignore=None):
     if ignore:
         ignore = IGNORE + ignore
     else:
         ignore = IGNORE[::]
+
     # new pythonpath initiation; creation a directory containing all python module for salome
     pythonpath_common = os.path.join(salome_install_dir, 'python_modules')
     if os.path.exists(pythonpath_common):
         remove(pythonpath_common)
     os.mkdir(pythonpath_common)
-    # refDir = os.path.abspath(os.path.dirname(__file__))
-    # shutil.copy(os.path.join(sys.path[-1], "setuptools/site-patch.py"), os.path.join(pythonpath_common, "site.py"))
     new_pythonpath_list = []
     new_pythonpath_list.append(pythonpath_common)