Refactoring directory path for plugins

This commit is contained in:
bao-qian
2016-01-08 02:18:19 +00:00
parent 6071319acd
commit a0f556b2a9
23 changed files with 41 additions and 38 deletions

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using Wox.Infrastructure;
namespace Wox.Plugin.Folder
{
@@ -246,7 +246,7 @@ namespace Wox.Plugin.Folder
public string GetLanguagesFolder()
{
return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Languages");
return Path.Combine(WoxDirectroy.Executable, "Languages");
}
public string GetTranslatedPluginTitle()

View File

@@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using Newtonsoft.Json;
using Wox.Infrastructure.Storage;