diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-09-09 17:17:49 +0000 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-09-09 17:17:49 +0000 |
| commit | 1e0a8be504708bd33d63ad5d9e03a5a7d5823ea9 (patch) | |
| tree | 55ecb82afaaa8cf4334cff0cf93a46fa9cbadfa3 | |
| parent | f350a6b67fb2df0ab20cd91207c6f91b2cbb6504 (diff) | |
add AppConfigPath public static property to Configuration class
| -rw-r--r-- | Crow/src/Configuration.cs | 5 |
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 () { |