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