diff --git a/ICD.Common.Utils/IO/IcdDirectory.cs b/ICD.Common.Utils/IO/IcdDirectory.cs index 4ae98bf..4b087c5 100644 --- a/ICD.Common.Utils/IO/IcdDirectory.cs +++ b/ICD.Common.Utils/IO/IcdDirectory.cs @@ -19,17 +19,18 @@ namespace ICD.Common.Utils.IO #endif } - -#if SIMPLSHARP /// /// This gets the application root directory for Crestron systems /// /// public static string GetApplicationRootDirectory() { +#if SIMPLSHARP return Directory.GetApplicationRootDirectory(); - } +#else + return Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase); #endif + } public static bool Exists(string path) { diff --git a/ICD.Common.Utils/PathUtils.cs b/ICD.Common.Utils/PathUtils.cs index a4e49da..64e21a6 100644 --- a/ICD.Common.Utils/PathUtils.cs +++ b/ICD.Common.Utils/PathUtils.cs @@ -20,10 +20,9 @@ namespace ICD.Common.Utils public static string RootPath { get { -#if SIMPLSHARP if (IcdEnvironment.RuntimeEnvironment == IcdEnvironment.eRuntimeEnvironment.SimplSharpProMono) return IcdDirectory.GetApplicationRootDirectory(); -#endif + return IcdDirectory.GetDirectoryRoot(IcdPath.DirectorySeparatorChar.ToString()); } }