[longomatch] Don't use the hardcoded path for the prefix
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Don't use the hardcoded path for the prefix
- Date: Mon, 19 Nov 2012 13:34:21 +0000 (UTC)
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]