[bos #41189]: documentation generation requires to expose DLLs

This commit is contained in:
Nabil Ghodbane 2024-03-20 08:54:04 +01:00
parent 1c23b5428c
commit eb0e543b23

View File

@ -115,8 +115,19 @@ if __name__ == "__main__":
help=h) help=h)
parser.add_argument("plugin", nargs='+', help='Name of plugin') parser.add_argument("plugin", nargs='+', help='Name of plugin')
args = parser.parse_args() args = parser.parse_args()
import platform
plugins_names = " ".join(args.plugin) + 'plugin' 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: if len(args.plugin) > 1:
plugins_names += 's' plugins_names += 's'
output = [] output = []