From f756b1ee1c93e842ae7ad4c64d1115586cac7382 Mon Sep 17 00:00:00 2001 From: mingchen Date: Fri, 19 Oct 2007 19:20:18 +0000 Subject: *Added -useexecutepath to use the path of the .exe as the path to find configuration and libraries and not the current working directory. --- OpenSim/Region/Application/OpenSimMain.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/Application/OpenSimMain.cs') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 4753145..5fb514f 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -91,6 +91,14 @@ namespace OpenSim { IConfigSource startupSource = configSource; string iniFile = startupSource.Configs["Startup"].GetString("inifile", "OpenSim.ini"); + string useExecutePathString = startupSource.Configs["Startup"].GetString("useexecutepath", "false").ToLower(); + bool useExecutePath = false; + if (useExecutePathString == "true" || useExecutePathString == "" || useExecutePathString == "1" || useExecutePathString == "yes") + { + useExecutePath = true; + } + + Util.changeUseExecutePathSetting(useExecutePath); //check for .INI file (either default or name passed in command line) string iniFilePath = Path.Combine(Util.configDir(), iniFile); -- cgit v1.1