Changed ScriptLoader to use Path.combine.

afrisby
MW 2007-08-13 19:56:48 +00:00
parent 876f71cf93
commit fc82bd8de7
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
/* Original code: Tedd Hansen */
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Reflection;
@ -41,7 +42,7 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
public ScriptEngineInterface LoadScriptEngine(string EngineName)
{
return LoadAndInitAssembly(@"ScriptEngines\OpenSim.Region.ScriptEngine." + EngineName + ".dll",
return LoadAndInitAssembly(Path.Combine("ScriptEngines", "OpenSim.Region.ScriptEngine." + EngineName + ".dll"),
"OpenSim.Region.ScriptEngine." + EngineName + ".ScriptEngine");
}