From 52c8768ac2d9cee0d4d6e7be0fd19880531ee18d Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Tue, 20 Sep 2016 14:07:34 -0500 Subject: [PATCH] fixed current directory method in template class --- Ficdown.Parser/Render/Template.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ficdown.Parser/Render/Template.cs b/Ficdown.Parser/Render/Template.cs index 9fbe368..30cd027 100644 --- a/Ficdown.Parser/Render/Template.cs +++ b/Ficdown.Parser/Render/Template.cs @@ -22,7 +22,7 @@ public static string Styles private static string GetFileContents(string fname) { - var path = Path.Combine(Environment.CurrentDirectory, string.Format("Render/{0}", fname)); + var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, string.Format("Render/{0}", fname)); return File.ReadAllText(path); } }