Port ExecutingDirectory from omfOS Util class.
parent
4f70ac018b
commit
0b13cfa4dd
|
@ -91,6 +91,17 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public static FireAndForgetMethod FireAndForgetMethod = FireAndForgetMethod.SmartThreadPool;
|
public static FireAndForgetMethod FireAndForgetMethod = FireAndForgetMethod.SmartThreadPool;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the name of the directory where the current running executable
|
||||||
|
/// is located
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Filesystem path to the directory containing the current
|
||||||
|
/// executable</returns>
|
||||||
|
public static string ExecutingDirectory()
|
||||||
|
{
|
||||||
|
return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Linear interpolates B<->C using percent A
|
/// Linear interpolates B<->C using percent A
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue