Skip to content

Commit

Permalink
Update App.xaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-Codes committed Apr 21, 2021
1 parent 89a8cfc commit 2c5f139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Anamnesis/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void CheckWorkingDirectory()

if (!File.Exists(currentDir + "/Anamnesis.exe"))
{
string? currentPath = Assembly.GetEntryAssembly()?.Location;
string? currentPath = AppContext.BaseDirectory;

if (string.IsNullOrEmpty(currentPath))
throw new Exception($"Failed to get current path");
Expand Down

0 comments on commit 2c5f139

Please sign in to comment.