From 57c947ad7f5802858d08fd738fa177d7277bf9fa Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 31 Oct 2008 08:14:26 +0000 Subject: [PATCH] Improve SALOME style handling --- bin/runLightSalome.csh | 14 +++++++++++--- bin/runLightSalome.sh | 6 +++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/bin/runLightSalome.csh b/bin/runLightSalome.csh index 39c742dc8..e4c8939da 100755 --- a/bin/runLightSalome.csh +++ b/bin/runLightSalome.csh @@ -27,8 +27,16 @@ # is necessary for loading of .ini or .xml resources file ### -if ( ! $?LightAppConfig ) setenv LightAppConfig ${GUI_ROOT_DIR}/share/salome/resources/gui -if ( ! $?LightAppResources ) setenv LightAppResources ${GUI_ROOT_DIR}/share/salome/resources/gui +if ( ! ($?LightAppConfig) ) then + setenv LightAppConfig ${GUI_ROOT_DIR}/share/salome/resources/gui +else + setenv LightAppConfig ${LightAppConfig}:${GUI_ROOT_DIR}/share/salome/resources/gui +endif +if ( ! ($?LightAppResources) ) then + setenv LightAppResources ${GUI_ROOT_DIR}/share/salome/resources/gui +else + setenv LightAppResources ${LightAppResources}:${GUI_ROOT_DIR}/share/salome/resources/gui +endif ### # default settings @@ -144,4 +152,4 @@ if ( "${PYTHONPATH}" != "" ) setenv PYTHONPATH ${MY_PYTHONPATH}:${PYTHONPATH} # start application ### -SUITApp LightApp -style salome $* & +SUITApp LightApp $* & diff --git a/bin/runLightSalome.sh b/bin/runLightSalome.sh index cc2540a04..3f1eb230b 100755 --- a/bin/runLightSalome.sh +++ b/bin/runLightSalome.sh @@ -29,9 +29,13 @@ if [ -z "$LightAppConfig" ] ; then export LightAppConfig=${GUI_ROOT_DIR}/share/salome/resources/gui +else + export LightAppConfig=${LightAppConfig}:${GUI_ROOT_DIR}/share/salome/resources/gui fi if [ -z "$LightAppResources" ] ; then export LightAppResources=${GUI_ROOT_DIR}/share/salome/resources/gui +else + export LightAppResources=${LightAppResources}:${GUI_ROOT_DIR}/share/salome/resources/gui fi ### @@ -142,4 +146,4 @@ fi # start application ### -SUITApp LightApp -style salome $* & +SUITApp LightApp $* & -- 2.39.2