PowerToys/Wox.Infrastructure/Wox.cs

20 lines
813 B
C#
Raw Normal View History

using System;
using System.IO;
using System.Reflection;
namespace Wox.Infrastructure
{
public static class Wox
{
public const string Name = "Wox";
public const string Plugins = "Plugins";
2016-05-08 02:16:13 +08:00
public const string Settings = "Settings";
public static readonly string ProgramPath = Directory.GetParent(Assembly.GetExecutingAssembly().Location).ToString();
public static readonly string DataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Name);
public static readonly string UserDirectory = Path.Combine(DataPath, Plugins);
public static readonly string PreinstalledDirectory = Path.Combine(ProgramPath, Plugins);
2016-05-08 02:16:13 +08:00
public static readonly string SettingsPath = Path.Combine(DataPath, Settings);
}
}