Changeset 8340 for trunk/sources/HeuristicLab.Clients.Hive.Slave.App
- Timestamp:
- 07/27/12 10:19:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Slave.App/3.3/HiveSlaveApplication.cs
r7259 r8340 20 20 #endregion 21 21 22 using System.IO;23 22 using System.Threading; 24 23 using System.Windows.Forms; 25 using HeuristicLab.Clients.Hive.SlaveCore.Properties;26 24 using HeuristicLab.Clients.Hive.SlaveCore.Views; 27 25 using HeuristicLab.PluginInfrastructure; … … 32 30 private HeuristicLab.Clients.Hive.SlaveCore.Core core; 33 31 public override void Run() { 34 CheckWorkingDirectories();35 32 36 33 core = new HeuristicLab.Clients.Hive.SlaveCore.Core(); … … 48 45 core.Shutdown(); 49 46 } 50 51 /// <summary>52 /// Normally the configuration file just contains the folder names of the PluginCache and the AppDomain working directory.53 /// This means that these folders are created in the current directory which is ok for the console client and the windows service.54 /// For the HL client we can't do that because the plugin infrastructure gets confused when starting HeuristicLab.55 /// Therefore if there is only a relative path in the config, we change that to the temp path.56 /// </summary>57 void CheckWorkingDirectories() {58 if (!Path.IsPathRooted(Settings.Default.PluginCacheDir)) {59 Settings.Default.PluginCacheDir = Path.Combine(Path.GetTempPath(), Settings.Default.PluginCacheDir);60 Settings.Default.Save();61 }62 63 if (!Path.IsPathRooted(Settings.Default.PluginTempBaseDir)) {64 Settings.Default.PluginTempBaseDir = Path.Combine(Path.GetTempPath(), Settings.Default.PluginTempBaseDir);65 Settings.Default.Save();66 }67 }68 47 } 69 48 }
Note: See TracChangeset
for help on using the changeset viewer.