Add better detection of our base dir

This commit is contained in:
de4dot 2012-01-09 22:59:26 +01:00
parent 294ae6bc5e
commit 0612320ffd

View File

@ -159,7 +159,7 @@ namespace de4dot.code {
public static string getOurBaseDir() {
if (ourBaseDir != null)
return ourBaseDir;
return ourBaseDir = getDirName(getFullPath(Environment.GetCommandLineArgs()[0]));
return ourBaseDir = getDirName(typeof(Utils).Assembly.Location);
}
public static string getPathOfOurFile(string filename) {