From fc82bd8de7ba544dc89f4703ffc03f5d8f1304e1 Mon Sep 17 00:00:00 2001
From: MW
Date: Mon, 13 Aug 2007 19:56:48 +0000
Subject: Changed ScriptLoader to use Path.combine.

---
 OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'OpenSim/Region')

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 @@
 /* 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");
         }
 
-- 
cgit v1.1