[longomatch] improve detection for mac



commit 9c235e06d8cf0aebd4d6a7e9d0aa2c50320a9079
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Sep 7 17:03:22 2012 +0200

    improve detection for mac

 LongoMatch.Services/Services/Core.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index 6b9bbac..e6623fe 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -154,7 +154,8 @@ namespace LongoMatch.Services
 		private static void SetupBaseDir() {
 			string home;
 			
-			if (Environment.OSVersion.Platform != PlatformID.Unix)
+			if (Environment.OSVersion.Platform == PlatformID.MacOSX) ||
+				Environment.OSVersion.Platform != PlatformID.Win32NT) {
 				Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../");
 			else
 				Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../../");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]