diff --git a/.gitignore b/.gitignore index d25f19e77..3cf9f498f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.pyd +*.pyc # Build Folders (you can keep bin if you'd like, to store dlls and pdbs) [Bb]in/ diff --git a/PythonHome/Lib/UserDict.pyc b/PythonHome/Lib/UserDict.pyc deleted file mode 100644 index a50306050..000000000 Binary files a/PythonHome/Lib/UserDict.pyc and /dev/null differ diff --git a/PythonHome/Lib/__future__.pyc b/PythonHome/Lib/__future__.pyc deleted file mode 100644 index aa10964d6..000000000 Binary files a/PythonHome/Lib/__future__.pyc and /dev/null differ diff --git a/PythonHome/Lib/_abcoll.pyc b/PythonHome/Lib/_abcoll.pyc deleted file mode 100644 index 04f0ef2de..000000000 Binary files a/PythonHome/Lib/_abcoll.pyc and /dev/null differ diff --git a/PythonHome/Lib/_weakrefset.pyc b/PythonHome/Lib/_weakrefset.pyc deleted file mode 100644 index 7a4ff2422..000000000 Binary files a/PythonHome/Lib/_weakrefset.pyc and /dev/null differ diff --git a/PythonHome/Lib/abc.pyc b/PythonHome/Lib/abc.pyc deleted file mode 100644 index 70bb2aee9..000000000 Binary files a/PythonHome/Lib/abc.pyc and /dev/null differ diff --git a/PythonHome/Lib/codecs.pyc b/PythonHome/Lib/codecs.pyc deleted file mode 100644 index ea2981c65..000000000 Binary files a/PythonHome/Lib/codecs.pyc and /dev/null differ diff --git a/PythonHome/Lib/collections.pyc b/PythonHome/Lib/collections.pyc deleted file mode 100644 index c947e2e5e..000000000 Binary files a/PythonHome/Lib/collections.pyc and /dev/null differ diff --git a/PythonHome/Lib/copy.pyc b/PythonHome/Lib/copy.pyc deleted file mode 100644 index fbe4e7668..000000000 Binary files a/PythonHome/Lib/copy.pyc and /dev/null differ diff --git a/PythonHome/Lib/copy_reg.pyc b/PythonHome/Lib/copy_reg.pyc deleted file mode 100644 index 5c64c10d9..000000000 Binary files a/PythonHome/Lib/copy_reg.pyc and /dev/null differ diff --git a/PythonHome/Lib/dis.pyc b/PythonHome/Lib/dis.pyc deleted file mode 100644 index 7703b4e0e..000000000 Binary files a/PythonHome/Lib/dis.pyc and /dev/null differ diff --git a/PythonHome/Lib/encodings/__init__.pyc b/PythonHome/Lib/encodings/__init__.pyc deleted file mode 100644 index b7380f5f9..000000000 Binary files a/PythonHome/Lib/encodings/__init__.pyc and /dev/null differ diff --git a/PythonHome/Lib/encodings/aliases.pyc b/PythonHome/Lib/encodings/aliases.pyc deleted file mode 100644 index 31661a3de..000000000 Binary files a/PythonHome/Lib/encodings/aliases.pyc and /dev/null differ diff --git a/PythonHome/Lib/encodings/gbk.pyc b/PythonHome/Lib/encodings/gbk.pyc deleted file mode 100644 index f45478a92..000000000 Binary files a/PythonHome/Lib/encodings/gbk.pyc and /dev/null differ diff --git a/PythonHome/Lib/encodings/hex_codec.pyc b/PythonHome/Lib/encodings/hex_codec.pyc deleted file mode 100644 index 1aabdbd20..000000000 Binary files a/PythonHome/Lib/encodings/hex_codec.pyc and /dev/null differ diff --git a/PythonHome/Lib/functools.pyc b/PythonHome/Lib/functools.pyc deleted file mode 100644 index 6c64a1bc9..000000000 Binary files a/PythonHome/Lib/functools.pyc and /dev/null differ diff --git a/PythonHome/Lib/genericpath.pyc b/PythonHome/Lib/genericpath.pyc deleted file mode 100644 index 311bf12b2..000000000 Binary files a/PythonHome/Lib/genericpath.pyc and /dev/null differ diff --git a/PythonHome/Lib/hashlib.pyc b/PythonHome/Lib/hashlib.pyc deleted file mode 100644 index bc842302f..000000000 Binary files a/PythonHome/Lib/hashlib.pyc and /dev/null differ diff --git a/PythonHome/Lib/heapq.pyc b/PythonHome/Lib/heapq.pyc deleted file mode 100644 index b1c1f0ab0..000000000 Binary files a/PythonHome/Lib/heapq.pyc and /dev/null differ diff --git a/PythonHome/Lib/inspect.pyc b/PythonHome/Lib/inspect.pyc deleted file mode 100644 index ab0356b8d..000000000 Binary files a/PythonHome/Lib/inspect.pyc and /dev/null differ diff --git a/PythonHome/Lib/io.pyc b/PythonHome/Lib/io.pyc deleted file mode 100644 index 9f5e35872..000000000 Binary files a/PythonHome/Lib/io.pyc and /dev/null differ diff --git a/PythonHome/Lib/json/__init__.pyc b/PythonHome/Lib/json/__init__.pyc deleted file mode 100644 index 6ef0af96e..000000000 Binary files a/PythonHome/Lib/json/__init__.pyc and /dev/null differ diff --git a/PythonHome/Lib/json/decoder.pyc b/PythonHome/Lib/json/decoder.pyc deleted file mode 100644 index dde6fe535..000000000 Binary files a/PythonHome/Lib/json/decoder.pyc and /dev/null differ diff --git a/PythonHome/Lib/json/encoder.pyc b/PythonHome/Lib/json/encoder.pyc deleted file mode 100644 index 1a7268839..000000000 Binary files a/PythonHome/Lib/json/encoder.pyc and /dev/null differ diff --git a/PythonHome/Lib/json/scanner.pyc b/PythonHome/Lib/json/scanner.pyc deleted file mode 100644 index 382a1280a..000000000 Binary files a/PythonHome/Lib/json/scanner.pyc and /dev/null differ diff --git a/PythonHome/Lib/keyword.pyc b/PythonHome/Lib/keyword.pyc deleted file mode 100644 index 82f48fe55..000000000 Binary files a/PythonHome/Lib/keyword.pyc and /dev/null differ diff --git a/PythonHome/Lib/linecache.pyc b/PythonHome/Lib/linecache.pyc deleted file mode 100644 index 16dc4886c..000000000 Binary files a/PythonHome/Lib/linecache.pyc and /dev/null differ diff --git a/PythonHome/Lib/locale.pyc b/PythonHome/Lib/locale.pyc deleted file mode 100644 index 65cb23ba3..000000000 Binary files a/PythonHome/Lib/locale.pyc and /dev/null differ diff --git a/PythonHome/Lib/ntpath.pyc b/PythonHome/Lib/ntpath.pyc deleted file mode 100644 index 6b39c6802..000000000 Binary files a/PythonHome/Lib/ntpath.pyc and /dev/null differ diff --git a/PythonHome/Lib/opcode.pyc b/PythonHome/Lib/opcode.pyc deleted file mode 100644 index fad5cd60c..000000000 Binary files a/PythonHome/Lib/opcode.pyc and /dev/null differ diff --git a/PythonHome/Lib/os.pyc b/PythonHome/Lib/os.pyc deleted file mode 100644 index d33ff346e..000000000 Binary files a/PythonHome/Lib/os.pyc and /dev/null differ diff --git a/PythonHome/Lib/platform.pyc b/PythonHome/Lib/platform.pyc deleted file mode 100644 index 9132aa04e..000000000 Binary files a/PythonHome/Lib/platform.pyc and /dev/null differ diff --git a/PythonHome/Lib/re.pyc b/PythonHome/Lib/re.pyc deleted file mode 100644 index b2d643d31..000000000 Binary files a/PythonHome/Lib/re.pyc and /dev/null differ diff --git a/PythonHome/Lib/shlex.pyc b/PythonHome/Lib/shlex.pyc deleted file mode 100644 index d86fc22ed..000000000 Binary files a/PythonHome/Lib/shlex.pyc and /dev/null differ diff --git a/PythonHome/Lib/site.pyc b/PythonHome/Lib/site.pyc deleted file mode 100644 index 70bfdb506..000000000 Binary files a/PythonHome/Lib/site.pyc and /dev/null differ diff --git a/PythonHome/Lib/socket.pyc b/PythonHome/Lib/socket.pyc deleted file mode 100644 index 15337d1cd..000000000 Binary files a/PythonHome/Lib/socket.pyc and /dev/null differ diff --git a/PythonHome/Lib/sre_compile.pyc b/PythonHome/Lib/sre_compile.pyc deleted file mode 100644 index c9401e28f..000000000 Binary files a/PythonHome/Lib/sre_compile.pyc and /dev/null differ diff --git a/PythonHome/Lib/sre_constants.pyc b/PythonHome/Lib/sre_constants.pyc deleted file mode 100644 index 2384c6dfc..000000000 Binary files a/PythonHome/Lib/sre_constants.pyc and /dev/null differ diff --git a/PythonHome/Lib/sre_parse.pyc b/PythonHome/Lib/sre_parse.pyc deleted file mode 100644 index 21906af54..000000000 Binary files a/PythonHome/Lib/sre_parse.pyc and /dev/null differ diff --git a/PythonHome/Lib/stat.pyc b/PythonHome/Lib/stat.pyc deleted file mode 100644 index 5ddc39bbd..000000000 Binary files a/PythonHome/Lib/stat.pyc and /dev/null differ diff --git a/PythonHome/Lib/string.pyc b/PythonHome/Lib/string.pyc deleted file mode 100644 index 2d8b4c512..000000000 Binary files a/PythonHome/Lib/string.pyc and /dev/null differ diff --git a/PythonHome/Lib/struct.pyc b/PythonHome/Lib/struct.pyc deleted file mode 100644 index 00baa07d0..000000000 Binary files a/PythonHome/Lib/struct.pyc and /dev/null differ diff --git a/PythonHome/Lib/sysconfig.pyc b/PythonHome/Lib/sysconfig.pyc deleted file mode 100644 index 07113adfd..000000000 Binary files a/PythonHome/Lib/sysconfig.pyc and /dev/null differ diff --git a/PythonHome/Lib/textwrap.pyc b/PythonHome/Lib/textwrap.pyc deleted file mode 100644 index 6dd61cd52..000000000 Binary files a/PythonHome/Lib/textwrap.pyc and /dev/null differ diff --git a/PythonHome/Lib/token.pyc b/PythonHome/Lib/token.pyc deleted file mode 100644 index bbb667bb4..000000000 Binary files a/PythonHome/Lib/token.pyc and /dev/null differ diff --git a/PythonHome/Lib/tokenize.pyc b/PythonHome/Lib/tokenize.pyc deleted file mode 100644 index 21ebb1ed4..000000000 Binary files a/PythonHome/Lib/tokenize.pyc and /dev/null differ diff --git a/PythonHome/Lib/traceback.pyc b/PythonHome/Lib/traceback.pyc deleted file mode 100644 index cb9b4a1e4..000000000 Binary files a/PythonHome/Lib/traceback.pyc and /dev/null differ diff --git a/PythonHome/Lib/types.pyc b/PythonHome/Lib/types.pyc deleted file mode 100644 index 60e5a348c..000000000 Binary files a/PythonHome/Lib/types.pyc and /dev/null differ diff --git a/PythonHome/Lib/warnings.pyc b/PythonHome/Lib/warnings.pyc deleted file mode 100644 index dd0f1a56e..000000000 Binary files a/PythonHome/Lib/warnings.pyc and /dev/null differ diff --git a/PythonHome/Lib/weakref.pyc b/PythonHome/Lib/weakref.pyc deleted file mode 100644 index 908cb079a..000000000 Binary files a/PythonHome/Lib/weakref.pyc and /dev/null differ diff --git a/Wox/PluginLoader/BasePluginLoader.cs b/Wox/PluginLoader/BasePluginLoader.cs index 6bcbd7363..ea2ad4f5d 100644 --- a/Wox/PluginLoader/BasePluginLoader.cs +++ b/Wox/PluginLoader/BasePluginLoader.cs @@ -10,12 +10,12 @@ namespace Wox.PluginLoader { public virtual List LoadPlugin(List pluginMetadatas) { - T pluginWrapper = new T(); - List metadatas = pluginMetadatas.Where(o => pluginWrapper.SupportedLanguage.ToUpper() == o.Language.ToUpper()).ToList(); + string supportedLanguage = new T().SupportedLanguage; + List metadatas = pluginMetadatas.Where(o => supportedLanguage.ToUpper() == o.Language.ToUpper()).ToList(); return metadatas.Select(metadata => new PluginPair() { - Plugin = pluginWrapper, + Plugin = new T(), Metadata = metadata }).ToList(); } diff --git a/Wox/ResultPanel.xaml b/Wox/ResultPanel.xaml index c37b9b67a..d05663585 100644 --- a/Wox/ResultPanel.xaml +++ b/Wox/ResultPanel.xaml @@ -22,7 +22,7 @@ - +