From 0612320ffdab9fb35cbd9958add6ea74210eacbd Mon Sep 17 00:00:00 2001 From: de4dot Date: Mon, 9 Jan 2012 22:59:26 +0100 Subject: [PATCH] Add better detection of our base dir --- de4dot.code/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/de4dot.code/Utils.cs b/de4dot.code/Utils.cs index ce069f69..d9a81209 100644 --- a/de4dot.code/Utils.cs +++ b/de4dot.code/Utils.cs @@ -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) {