Add better detection of our base dir
This commit is contained in:
parent
294ae6bc5e
commit
0612320ffd
|
@ -159,7 +159,7 @@ namespace de4dot.code {
|
||||||
public static string getOurBaseDir() {
|
public static string getOurBaseDir() {
|
||||||
if (ourBaseDir != null)
|
if (ourBaseDir != null)
|
||||||
return ourBaseDir;
|
return ourBaseDir;
|
||||||
return ourBaseDir = getDirName(getFullPath(Environment.GetCommandLineArgs()[0]));
|
return ourBaseDir = getDirName(typeof(Utils).Assembly.Location);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string getPathOfOurFile(string filename) {
|
public static string getPathOfOurFile(string filename) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user