[longomatch] Don't use the hardcoded path for the prefix



commit 3e409f2b9d133b2c897355bf490b2780fd6891a1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Nov 19 14:31:13 2012 +0100

    Don't use the hardcoded path for the prefix

 LongoMatch.Services/Services/Core.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index a872f22..38a9219 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -155,10 +155,10 @@ namespace LongoMatch.Services
 			string home;
 			
 			Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../");
-			if (!System.IO.Directory.Exists(System.IO.Path.Combine(Config.baseDirectory, "share", "longomatch"))) {
+			if (!System.IO.Directory.Exists(System.IO.Path.Combine(Config.baseDirectory, "share", Constants.SOFTWARE_NAME))) {
 				Config.baseDirectory = System.IO.Path.Combine(Config.baseDirectory, "../");
 			}
-			if (!System.IO.Directory.Exists(System.IO.Path.Combine(Config.baseDirectory, "share", "longomatch")))
+			if (!System.IO.Directory.Exists(System.IO.Path.Combine(Config.baseDirectory, "share", Constants.SOFTWARE_NAME)))
 				Log.Warning("Prefix directory not found");
 			
 			/* Check for the magic file PORTABLE to check if it's a portable version



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