Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9747


Ignore:
Timestamp:
07/24/13 14:50:57 (11 years ago)
Author:
mkommend
Message:

#2082: Changed path variable in the Scilab plugin Load method to avoid problems when MATLAB and Scilab are both installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.ExternalEvaluation Scientific/HeuristicLab.Problems.ExternalEvaluation.Scilab/3.3/Plugin.cs.frame

    r9690 r9747  
    4646    private const string scilab_PATH = @"SCIPATH";
    4747
     48    private static bool loadedOnce = false;
     49
    4850    public override void OnLoad() {
    4951      base.OnLoad();
     52      if (loadedOnce) return;
    5053
    5154      var currentPath = Environment.GetEnvironmentVariable("path");
     
    5457      var scilabPath = GetScilabInstallPath();
    5558      if (string.IsNullOrEmpty(scilabPath)) return;
    56       if (currentPath.Contains(scilabPath)) return;
    5759
    58       Environment.SetEnvironmentVariable("path", currentPath + ";" + scilabPath);
     60      Environment.SetEnvironmentVariable("path", scilabPath + ";" + currentPath);
    5961    }
    6062
Note: See TracChangeset for help on using the changeset viewer.