From 3752c5e40a15a1ee83565c797f8807f9dcffb9ad Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Wed, 25 Jul 2018 14:11:01 +0200
Subject: [PATCH] Look in the "var" subdir for config files

Since the executable will be located in the service base directory it
makes most sense to check in the `var` subdir for the config by default.

Fixes #58
---
 ATxConfigTest/AutoTxConfigTest.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ATxConfigTest/AutoTxConfigTest.cs b/ATxConfigTest/AutoTxConfigTest.cs
index b4cbd9c..2e4f5e5 100644
--- a/ATxConfigTest/AutoTxConfigTest.cs
+++ b/ATxConfigTest/AutoTxConfigTest.cs
@@ -1,4 +1,5 @@
 using System;
+using System.IO;
 using ATxCommon.Serializables;
 using NLog;
 using NLog.Config;
@@ -14,7 +15,7 @@ namespace ATxConfigTest
             var logLevel = LogLevel.Info;
             var logPrefix = "";
             
-            var baseDir = AppDomain.CurrentDomain.BaseDirectory;
+            var baseDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "var");
             if (args.Length > 0)
                 baseDir = args[0];
 
-- 
GitLab