From 4d3420873e3827bfb39c25830bde6399482c07b7 Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Tue, 12 Oct 2021 15:10:35 +0200 Subject: [PATCH] pythonpath_reduction:minor correction. Actually, we don't need the prerequisites install dir --- bin/pythonpath_reduction.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/pythonpath_reduction.py b/bin/pythonpath_reduction.py index a0ab85fd7..c2ee14492 100644 --- a/bin/pythonpath_reduction.py +++ b/bin/pythonpath_reduction.py @@ -27,12 +27,10 @@ def copy(src,dst): if sys.version_info[0] < 3: raise Exception("Must be using Python 3") -# The single input of this script is install path of all salome prerequisites -# Create the new python module folder on the same directory of prerequisites folder (salome install path ) -prerequis_install_dir = sys.argv[1] -while(prerequis_install_dir[-1] == '/'): - prerequis_install_dir = prerequis_install_dir[:-1] -salome_install_dir = os.path.dirname(prerequis_install_dir) +# The single input of this script is install path of salome. +# The salome install folder must contain the salome_context.cfg file and salome_prerequisites.sh file +# Create the new python module folder in the salome install folder +salome_install_dir = sys.argv[1] #new pythonpath initiation; creation a directory containing all python module for salome pythonpath_common = os.path.join(salome_install_dir,'python_modules') -- 2.39.2