From: asozinov Date: Fri, 9 Feb 2024 14:46:04 +0000 (+0000) Subject: add DXF plugin X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=959bd834ec3a33ee1d3565e7cdc855a52af44d2d;p=tools%2Fsat_salome.git add DXF plugin --- diff --git a/products/DXF.pyconf b/products/DXF.pyconf index 909a02a..9a49fed 100644 --- a/products/DXF.pyconf +++ b/products/DXF.pyconf @@ -8,7 +8,7 @@ default : { env_script : $name + ".py" } - depend : ["CAS"] + depend : ['CAS','SHAPER'] patches : [ ] archive_info : {archive_name : "DXF.tar.gz"} source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name diff --git a/products/env_scripts/DXF.py b/products/env_scripts/DXF.py index 2ec23ee..2c18481 100644 --- a/products/env_scripts/DXF.py +++ b/products/env_scripts/DXF.py @@ -5,12 +5,11 @@ import os.path import platform def set_env(env, prereq_dir, version): - env.set('SAMHOME', prereq_dir) env.set('DXF_ROOT_DIR', prereq_dir) env.set('DXF_DIR', prereq_dir) - env.prepend('PYTHONPATH', env.get('DXFHOME')) + 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') - env.set('DXFHOME', '/usr') \ No newline at end of file