diff --git a/Wabbajack.Paths.IO/KnownFolders.cs b/Wabbajack.Paths.IO/KnownFolders.cs index cf761741..e1ea4cfe 100644 --- a/Wabbajack.Paths.IO/KnownFolders.cs +++ b/Wabbajack.Paths.IO/KnownFolders.cs @@ -11,9 +11,13 @@ public static class KnownFolders { get { - //var v = Process.GetCurrentProcess().ProcessName; - //return Assembly.GetExecutingAssembly().Location.ToAbsolutePath().Parent; - return Process.GetCurrentProcess().MainModule!.FileName!.ToAbsolutePath().Parent; + var result = Process.GetCurrentProcess().MainModule!.FileName!.ToAbsolutePath().Parent; + if (result.FileName == "dotnet".ToRelativePath()) + { + return Assembly.GetExecutingAssembly().Location.ToAbsolutePath().Parent; + } + + return result; } }