aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-09-09 17:17:49 +0000
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-09-09 17:17:49 +0000
commit1e0a8be504708bd33d63ad5d9e03a5a7d5823ea9 (patch)
tree55ecb82afaaa8cf4334cff0cf93a46fa9cbadfa3
parentf350a6b67fb2df0ab20cd91207c6f91b2cbb6504 (diff)
add AppConfigPath public static property to Configuration class
-rw-r--r--Crow/src/Configuration.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Crow/src/Configuration.cs b/Crow/src/Configuration.cs
index 55bbeefb..5b99761d 100644
--- a/Crow/src/Configuration.cs
+++ b/Crow/src/Configuration.cs
@@ -91,7 +91,10 @@ namespace Crow
/// <param name="defaultConf"></param>
public Configuration (Stream defaultConf = null) {
load (defaultConf);
- }
+ }
+ public static string AppConfigPath => Path.Combine (
+ Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.UserProfile), ".config") ,
+ Assembly.GetEntryAssembly ().GetName().Name);
static Configuration ()
{