mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Misc
This commit is contained in:
19
Wox.Infrastructure/Storage/PluginJsonStorage.cs
Normal file
19
Wox.Infrastructure/Storage/PluginJsonStorage.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user