aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorMelanie2010-10-03 16:50:50 +0100
committerMelanie2010-10-03 16:50:50 +0100
commit0b13cfa4dd729b9142b1f7c5669390dae80d760a (patch)
tree9a73ed5a75f2f8b68335e0f9c3160bdc2ea616e6 /OpenSim/Framework/Util.cs
parentAdapt to core changes (diff)
downloadopensim-SC_OLD-0b13cfa4dd729b9142b1f7c5669390dae80d760a.zip
opensim-SC_OLD-0b13cfa4dd729b9142b1f7c5669390dae80d760a.tar.gz
opensim-SC_OLD-0b13cfa4dd729b9142b1f7c5669390dae80d760a.tar.bz2
opensim-SC_OLD-0b13cfa4dd729b9142b1f7c5669390dae80d760a.tar.xz
Port ExecutingDirectory from omfOS Util class.
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs11
1 files changed, 11 insertions, 0 deletions
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
92 public static FireAndForgetMethod FireAndForgetMethod = FireAndForgetMethod.SmartThreadPool; 92 public static FireAndForgetMethod FireAndForgetMethod = FireAndForgetMethod.SmartThreadPool;
93 93
94 /// <summary> 94 /// <summary>
95 /// Gets the name of the directory where the current running executable
96 /// is located
97 /// </summary>
98 /// <returns>Filesystem path to the directory containing the current
99 /// executable</returns>
100 public static string ExecutingDirectory()
101 {
102 return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
103 }
104
105 /// <summary>
95 /// Linear interpolates B<->C using percent A 106 /// Linear interpolates B<->C using percent A
96 /// </summary> 107 /// </summary>
97 /// <param name="a"></param> 108 /// <param name="a"></param>