From: Nabil Ghodbane Date: Wed, 20 Mar 2024 07:54:04 +0000 (+0100) Subject: [bos #41189]: documentation generation requires to expose DLLs X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eb0e543b23ece1b9abc4a1b609269257d0fee89a;p=modules%2Fgeom.git [bos #41189]: documentation generation requires to expose DLLs --- diff --git a/doc/salome/gui/GEOM/collect_geom_methods.py b/doc/salome/gui/GEOM/collect_geom_methods.py index d2b4a7b2e..cf7a279df 100755 --- a/doc/salome/gui/GEOM/collect_geom_methods.py +++ b/doc/salome/gui/GEOM/collect_geom_methods.py @@ -115,8 +115,19 @@ if __name__ == "__main__": help=h) parser.add_argument("plugin", nargs='+', help='Name of plugin') args = parser.parse_args() - - plugins_names = " ".join(args.plugin) + 'plugin' + import platform + if 'Windows' == platform.system(): + import sys + if sys.version_info > (3,8): + import os + os.add_dll_directory(os.path.join(os.getenv('KERNEL_ROOT_DIR'), 'lib', 'salome')) + os.add_dll_directory(os.path.join(os.getenv('GUI_ROOT_DIR'), 'lib', 'salome')) + os.add_dll_directory(os.path.join(os.getenv('PTHREAD_ROOT_DIR'), 'lib')) + os.add_dll_directory(os.path.join(os.getenv('PRODUCT_ROOT_DIR'), 'W64', 'EXT', 'bin')) + os.add_dll_directory(os.path.join(os.getenv('PRODUCT_ROOT_DIR'), 'W64', 'EXT', 'lib')) + os.add_dll_directory(os.getenv('OMNIORB_LIB_DIR')) + os.add_dll_directory(os.getenv('OMNIORB_BIN_DIR')) + plugins_names = ' '.join(args.plugin) + 'plugin' if len(args.plugin) > 1: plugins_names += 's' output = []