diff options
author | mingchen | 2007-10-19 19:20:18 +0000 |
---|---|---|
committer | mingchen | 2007-10-19 19:20:18 +0000 |
commit | f756b1ee1c93e842ae7ad4c64d1115586cac7382 (patch) | |
tree | 270c44d31d957fc9b662501378f2e88034b88b31 /OpenSim/Region/Application/OpenSimMain.cs | |
parent | * normalized line endings... (diff) | |
download | opensim-SC_OLD-f756b1ee1c93e842ae7ad4c64d1115586cac7382.zip opensim-SC_OLD-f756b1ee1c93e842ae7ad4c64d1115586cac7382.tar.gz opensim-SC_OLD-f756b1ee1c93e842ae7ad4c64d1115586cac7382.tar.bz2 opensim-SC_OLD-f756b1ee1c93e842ae7ad4c64d1115586cac7382.tar.xz |
*Added -useexecutepath to use the path of the .exe as the path to find configuration and libraries and not the current working directory.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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 | |||
91 | { | 91 | { |
92 | IConfigSource startupSource = configSource; | 92 | IConfigSource startupSource = configSource; |
93 | string iniFile = startupSource.Configs["Startup"].GetString("inifile", "OpenSim.ini"); | 93 | string iniFile = startupSource.Configs["Startup"].GetString("inifile", "OpenSim.ini"); |
94 | string useExecutePathString = startupSource.Configs["Startup"].GetString("useexecutepath", "false").ToLower(); | ||
95 | bool useExecutePath = false; | ||
96 | if (useExecutePathString == "true" || useExecutePathString == "" || useExecutePathString == "1" || useExecutePathString == "yes") | ||
97 | { | ||
98 | useExecutePath = true; | ||
99 | } | ||
100 | |||
101 | Util.changeUseExecutePathSetting(useExecutePath); | ||
94 | 102 | ||
95 | //check for .INI file (either default or name passed in command line) | 103 | //check for .INI file (either default or name passed in command line) |
96 | string iniFilePath = Path.Combine(Util.configDir(), iniFile); | 104 | string iniFilePath = Path.Combine(Util.configDir(), iniFile); |