[gbrainy] How to run GamesStatistics.exe
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] How to run GamesStatistics.exe
- Date: Sun, 28 Jan 2018 23:47:00 +0000 (UTC)
commit 699fce653c897ef1b50dcedae6968a09e5990ecc
Author: Jordi Mas <jmas softcatala org>
Date: Mon Jan 29 00:46:48 2018 +0100
How to run GamesStatistics.exe
tools/GamesStatistics.cs | 10 +++++++---
tools/README | 2 +-
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/tools/GamesStatistics.cs b/tools/GamesStatistics.cs
index 6668709..4c4185f 100644
--- a/tools/GamesStatistics.cs
+++ b/tools/GamesStatistics.cs
@@ -47,9 +47,13 @@ public class GamesStatistics
ServiceLocator.Instance.GetService <IConfiguration> ().Set (ConfigurationKeys.GamesGraphics,
Defines.DATA_DIR);
ServiceLocator.Instance.GetService <IConfiguration> ().Set (ConfigurationKeys.ThemesDir,
Defines.DATA_DIR);
- string assemblies_dir;
- assemblies_dir = System.IO.Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location);
- ServiceLocator.Instance.GetService <IConfiguration> ().Set (ConfigurationKeys.AssembliesDir,
assemblies_dir);
+ string mono_path = Environment.GetEnvironmentVariable ("MONO_PATH");
+
+ if (String.IsNullOrEmpty (mono_path))
+ mono_path = ".";
+
+ // Configuration
+ ServiceLocator.Instance.GetService <IConfiguration> ().Set (ConfigurationKeys.AssembliesDir,
mono_path);
}
static int question_answer, multiple_options, words_options, words_compare, games_xml;
diff --git a/tools/README b/tools/README
index 59344f7..bc630c7 100644
--- a/tools/README
+++ b/tools/README
@@ -11,5 +11,5 @@ Experimental tools:
* TranslationsChecker.cs - Checks for errors in translation files
'Make binary' (e.g: Make GameXmlToAssembly.exe) builds a specific tool
-
+'make run-stats' to run GamesStatistics.exe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]