Changeset 9747
- Timestamp:
- 07/24/13 14:50:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.ExternalEvaluation Scientific/HeuristicLab.Problems.ExternalEvaluation.Scilab/3.3/Plugin.cs.frame
r9690 r9747 46 46 private const string scilab_PATH = @"SCIPATH"; 47 47 48 private static bool loadedOnce = false; 49 48 50 public override void OnLoad() { 49 51 base.OnLoad(); 52 if (loadedOnce) return; 50 53 51 54 var currentPath = Environment.GetEnvironmentVariable("path"); … … 54 57 var scilabPath = GetScilabInstallPath(); 55 58 if (string.IsNullOrEmpty(scilabPath)) return; 56 if (currentPath.Contains(scilabPath)) return;57 59 58 Environment.SetEnvironmentVariable("path", currentPath + ";" + scilabPath);60 Environment.SetEnvironmentVariable("path", scilabPath + ";" + currentPath); 59 61 } 60 62
Note: See TracChangeset
for help on using the changeset viewer.