From: Gilles DAVID Date: Fri, 15 Oct 2021 16:42:47 +0000 (+0200) Subject: pythonpath_reduction.py: Only one directory is mandatory X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=23efa08f24393f5dc40717ad7886049d09cce8b9;p=modules%2Fkernel.git pythonpath_reduction.py: Only one directory is mandatory --- diff --git a/bin/pythonpath_reduction.py b/bin/pythonpath_reduction.py index 0e00d4686..04a3a723d 100644 --- a/bin/pythonpath_reduction.py +++ b/bin/pythonpath_reduction.py @@ -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)