This commit is contained in:
bao-qian
2016-05-05 02:08:38 +01:00
parent 86b201623d
commit 7e7637a1b3
5 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
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();
}
}
}