* bug #12415 fixed - PATH environment variable grows when using call_scilab in a... 92/10892/2
authorSimon Marchetto <simon.marchetto@scilab-enterprises.com>
Tue, 19 Mar 2013 18:50:16 +0000 (19:50 +0100)
committerAntoine ELIAS <antoine.elias@scilab-enterprises.com>
Tue, 9 Apr 2013 13:58:40 +0000 (15:58 +0200)
commitfac422d0f58c6c0e9c24b1c53c330f95ee27ddeb
treef00dbd560f33335a4cb38dabb897a8bee7efcd9b
parentb461fc52ed982487cb39991f7bf047e09be8407d
* bug #12415 fixed - PATH environment variable grows when using call_scilab in a loop

Fix:
 - new internal macro addPathToEnv.sci which adds a path to an env variable only if the env does not include it already
   use addPathToEnv() everywhere a path env is used in Scilab (mostly dynamic_link)
 - same fix in C function AddScilabBinDirectoryToPATHEnvironnementVariable()

+ remove filesep() in Windows macros

Change-Id: Ia0bf42d41a85a64148eb719e79569402c2267d7b
16 files changed:
scilab/CHANGES_5.4.X
scilab/modules/dynamic_link/macros/buildmacros.sce
scilab/modules/dynamic_link/macros/configure_msifort.sci
scilab/modules/dynamic_link/macros/configure_msvc.sci
scilab/modules/dynamic_link/macros/utils/addPathToEnv.sci [new file with mode: 0644]
scilab/modules/dynamic_link/macros/utils/buildmacros.bat [new file with mode: 0644]
scilab/modules/dynamic_link/macros/utils/buildmacros.sce [new file with mode: 0644]
scilab/modules/dynamic_link/macros/utils/cleanmacros.bat [new file with mode: 0644]
scilab/modules/dynamic_link/macros/windows/dlwSetEnvCommonVc9Vc10.sci
scilab/modules/dynamic_link/macros/windows/dlwSetEnvVc70.sci
scilab/modules/dynamic_link/macros/windows/dlwSetEnvVc71.sci
scilab/modules/dynamic_link/macros/windows/dlwSetEnvVc80.sci
scilab/modules/dynamic_link/tests/unit_tests/addPathToEnv.dia.ref [new file with mode: 0644]
scilab/modules/dynamic_link/tests/unit_tests/addPathToEnv.tst [new file with mode: 0644]
scilab/modules/scicos_blocks/macros/buildmacros.sce
scilab/modules/windows_tools/src/c/scilab_windows/SetScilabEnvironmentVariables.c