From: ASOZINOV Date: Fri, 1 Mar 2024 13:39:00 +0000 (-0500) Subject: Update env for DXF X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e22fb0ce8c5f046ba972fdb3dd202cc3aee2c82f;p=tools%2Fsat_salome.git Update env for DXF --- diff --git a/products/env_scripts/DXF.py b/products/env_scripts/DXF.py old mode 100644 new mode 100755 index 2c18481..567ab81 --- a/products/env_scripts/DXF.py +++ b/products/env_scripts/DXF.py @@ -1,15 +1,22 @@ -#!/usr/bin/env python -#-*- coding:utf-8 -*- - -import os.path -import platform - -def set_env(env, prereq_dir, version): - env.set('DXF_ROOT_DIR', prereq_dir) - env.set('DXF_DIR', prereq_dir) - env.prepend('PYTHONPATH', env.get('DXF_DIR')) - env.prepend('PYTHONPATH', env.get('DXF_ROOT_DIR')) - -def set_nativ_env(env): - env.set('DXF_ROOT_DIR', '/usr') # update for cmake - env.set('DXF_DIR', '/usr') +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + env.set('DXF_ROOT_DIR', prereq_dir) + env.set('DXF_DIR', prereq_dir) + env.set('PRODUCTS_DXF_LIBRARIES', os.path.join(prereq_dir, 'lib')) + env.prepend('PYTHONPATH', env.get('DXF_DIR')) + env.prepend('PYTHONPATH', env.get('DXF_ROOT_DIR')) + + if platform.system()=="Windows" : + env.prepend('PATH', os.path.join(prereq_dir, 'win64', 'vc14' ,'bin')) + else : + env.prepend('PATH', os.path.join(prereq_dir, 'bin')) + env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) + +def set_nativ_env(env): + env.set('DXF_ROOT_DIR', '/usr') # update for cmake + env.set('DXF_DIR', '/usr')