fixed current directory method in template class

This commit is contained in:
Rudis Muiznieks 2016-09-20 14:07:34 -05:00
parent 6f04123f3f
commit 52c8768ac2
No known key found for this signature in database
GPG Key ID: 1C290B51E05090F8
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ namespace Ficdown.Parser.Render
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);
}
}