diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Base/ServiceBase.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Services/Base/ServiceBase.cs b/OpenSim/Services/Base/ServiceBase.cs index ef30cba..22f27e0 100644 --- a/OpenSim/Services/Base/ServiceBase.cs +++ b/OpenSim/Services/Base/ServiceBase.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | ||
29 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
30 | using System.Reflection; | 31 | using System.Reflection; |
31 | using log4net; | 32 | using log4net; |
@@ -45,9 +46,11 @@ namespace OpenSim.Services.Base | |||
45 | 46 | ||
46 | public T LoadPlugin<T>(string dllName, Object[] args) where T:class | 47 | public T LoadPlugin<T>(string dllName, Object[] args) where T:class |
47 | { | 48 | { |
48 | string[] parts = dllName.Split(new char[] {':'}); | 49 | string pathRoot = Path.GetPathRoot(dllName); |
50 | string noRoot = dllName.Substring(pathRoot.Length); | ||
51 | string[] parts = noRoot.Split(new char[] { ':' }); | ||
49 | 52 | ||
50 | dllName = parts[0]; | 53 | dllName = pathRoot + parts[0]; |
51 | 54 | ||
52 | string className = String.Empty; | 55 | string className = String.Empty; |
53 | 56 | ||