PowerToys/Wox.Infrastructure/Storage/PluginJsonStorage.cs
2016-05-05 02:21:04 +01:00

20 lines
568 B
C#

using System.IO;
namespace Wox.Infrastructure.Storage
{
public class PluginJsonStorage<T> :JsonStrorage<T> where T : new()
{
public PluginJsonStorage()
{
DirectoryName = Wox.Plugins;
// C# releated, add python releated below
var assemblyName = DataType.Assembly.GetName().Name;
DirectoryPath = Path.Combine(DirectoryPath, DirectoryName, assemblyName);
FilePath = Path.Combine(DirectoryPath, FileName + FileSuffix);
ValidateDirectory();
}
}
}