diff --git a/.gitignore b/.gitignore index d25f19e773..3cf9f498f1 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 a503060500..0000000000 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 aa10964d64..0000000000 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 04f0ef2de6..0000000000 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 7a4ff24222..0000000000 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 70bb2aee9e..0000000000 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 ea2981c654..0000000000 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 c947e2e5e0..0000000000 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 fbe4e76689..0000000000 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 5c64c10d91..0000000000 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 7703b4e0ea..0000000000 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 b7380f5f9a..0000000000 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 31661a3de3..0000000000 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 f45478a92e..0000000000 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 1aabdbd20b..0000000000 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 6c64a1bc9b..0000000000 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 311bf12b23..0000000000 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 bc842302f9..0000000000 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 b1c1f0ab06..0000000000 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 ab0356b8d8..0000000000 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 9f5e35872f..0000000000 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 6ef0af96e3..0000000000 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 dde6fe535d..0000000000 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 1a7268839f..0000000000 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 382a1280a5..0000000000 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 82f48fe555..0000000000 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 16dc4886c5..0000000000 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 65cb23ba39..0000000000 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 6b39c68026..0000000000 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 fad5cd60c5..0000000000 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 d33ff346e1..0000000000 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 9132aa04e8..0000000000 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 b2d643d316..0000000000 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 d86fc22edb..0000000000 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 70bfdb506f..0000000000 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 15337d1cdd..0000000000 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 c9401e28f7..0000000000 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 2384c6dfce..0000000000 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 21906af54a..0000000000 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 5ddc39bbd8..0000000000 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 2d8b4c5128..0000000000 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 00baa07d09..0000000000 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 07113adfd9..0000000000 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 6dd61cd522..0000000000 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 bbb667bb46..0000000000 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 21ebb1ed4f..0000000000 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 cb9b4a1e46..0000000000 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 60e5a348cd..0000000000 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 dd0f1a56ef..0000000000 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 908cb079ac..0000000000 Binary files a/PythonHome/Lib/weakref.pyc and /dev/null differ diff --git a/Wox/PluginLoader/BasePluginLoader.cs b/Wox/PluginLoader/BasePluginLoader.cs index 6bcbd7363d..ea2ad4f5df 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 c37b9b67a0..d05663585c 100644 --- a/Wox/ResultPanel.xaml +++ b/Wox/ResultPanel.xaml @@ -22,7 +22,7 @@ - +