From 0b13cfa4dd729b9142b1f7c5669390dae80d760a Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 3 Oct 2010 16:50:50 +0100 Subject: Port ExecutingDirectory from omfOS Util class. --- OpenSim/Framework/Util.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Framework/Util.cs') diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index e7a7f49..addfe5d 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -92,6 +92,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 /// /// -- cgit v1.1