Clean up global temp, exe dir

This commit is contained in:
Matt Nadareski
2020-12-11 22:52:28 -08:00
parent fd3f28eb7c
commit 056b0634f0
13 changed files with 23 additions and 74 deletions

View File

@@ -1,6 +1,8 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using NaturalSort;
@@ -166,5 +168,14 @@ namespace SabreTools.IO
// Return the new list
return infiles;
}
/// <summary>
/// Get the current runtime directory
/// </summary>
public static string GetRuntimeDirectory()
{
string exeName = new Uri(Assembly.GetExecutingAssembly().GetName().CodeBase).LocalPath;
return Path.GetDirectoryName(exeName);
}
}
}