Add path to program directory

This commit is contained in:
Jack Kanarish
2017-12-12 17:09:52 -05:00
parent 8d0042aa19
commit 3fc23eca5f

View File

@@ -19,6 +19,19 @@ namespace ICD.Common.Utils
[PublicAPI] [PublicAPI]
public static string RootPath { get { return IcdDirectory.GetDirectoryRoot("\\"); } } public static string RootPath { get { return IcdDirectory.GetDirectoryRoot("\\"); } }
/// <summary>
/// Gets the path to the program directory
/// </summary>
[PublicAPI]
public static string ProgramPath
{
get
{
string directoryName = string.Format("Program{0}", ProgramUtils.ProgramNumber);
return Join(RootPath, directoryName);
}
}
/// <summary> /// <summary>
/// Gets the path to the NVRAM directory. /// Gets the path to the NVRAM directory.
/// </summary> /// </summary>