diff options
Changed ScriptLoader to use Path.combine.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs index 2f0551c..4b912e4 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | /* Original code: Tedd Hansen */ | 28 | /* Original code: Tedd Hansen */ |
29 | using System; | 29 | using System; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.IO; | ||
31 | using System.Text; | 32 | using System.Text; |
32 | using System.Reflection; | 33 | using System.Reflection; |
33 | 34 | ||
@@ -41,7 +42,7 @@ namespace OpenSim.Region.Environment.Scenes.Scripting | |||
41 | 42 | ||
42 | public ScriptEngineInterface LoadScriptEngine(string EngineName) | 43 | public ScriptEngineInterface LoadScriptEngine(string EngineName) |
43 | { | 44 | { |
44 | return LoadAndInitAssembly(@"ScriptEngines\OpenSim.Region.ScriptEngine." + EngineName + ".dll", | 45 | return LoadAndInitAssembly(Path.Combine("ScriptEngines", "OpenSim.Region.ScriptEngine." + EngineName + ".dll"), |
45 | "OpenSim.Region.ScriptEngine." + EngineName + ".ScriptEngine"); | 46 | "OpenSim.Region.ScriptEngine." + EngineName + ".ScriptEngine"); |
46 | } | 47 | } |
47 | 48 | ||