private static void CheckPersonalPathConfig() { string customPersonalPath = ReadPersonalPathConfig(); if (!string.IsNullOrEmpty(customPersonalPath)) { CustomPersonalPath = Path.GetFullPath(customPersonalPath); if (CustomPersonalPath.Equals(PortablePersonalPath, StringComparison.InvariantCultureIgnoreCase)) { IsPortable = true; } } }
private static void CheckPersonalPathConfig() { string customPersonalPath = ReadPersonalPathConfig(); if (!string.IsNullOrEmpty(customPersonalPath)) { customPersonalPath = Environment.ExpandEnvironmentVariables(customPersonalPath); CustomPersonalPath = Helpers.GetAbsolutePath(customPersonalPath); if (CustomPersonalPath.Equals(PortablePersonalPath, StringComparison.InvariantCultureIgnoreCase)) { IsPortable = true; } } }
private static void CheckPersonalPathConfig() { if (File.Exists(PersonalPathConfig)) { string customPersonalPath = File.ReadAllText(PersonalPathConfig, Encoding.UTF8).Trim(); if (!string.IsNullOrEmpty(customPersonalPath)) { CustomPersonalPath = Path.GetFullPath(customPersonalPath); if (CustomPersonalPath.Equals(PortablePersonalPath, StringComparison.InvariantCultureIgnoreCase)) { IsPortable = true; } } } }