diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index e7a7f49148..addfe5d1af 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -91,6 +91,17 @@ namespace OpenSim.Framework
public static FireAndForgetMethod FireAndForgetMethod = FireAndForgetMethod.SmartThreadPool;
+ ///
+ /// Gets the name of the directory where the current running executable
+ /// is located
+ ///
+ /// Filesystem path to the directory containing the current
+ /// executable
+ public static string ExecutingDirectory()
+ {
+ return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ }
+
///
/// Linear interpolates B<->C using percent A
///