diff --git a/addon/globalPlugins/command_palette/command_store.py b/addon/globalPlugins/command_palette/command_store.py index c2d0d7e..dc71ff4 100644 --- a/addon/globalPlugins/command_palette/command_store.py +++ b/addon/globalPlugins/command_palette/command_store.py @@ -9,14 +9,13 @@ from collections import OrderedDict from logHandler import log from .command_interpreter import CommandInterpreter, NVDAGestureCommand - - -sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "libs"))) -import ujson -from fuzzywuzzy import process - -sys.path.pop(0) - +try: + from libs import ujson + from libs.fuzzywuzzy import process +except ImportError: + sys.path.append(os.path.join(os.path.dirname(__file__), "libs")) + import ujson + from fuzzywuzzy import process BUILTIN_COMMANDS_FILE = os.path.abspath( os.path.join(os.path.dirname(__file__), "builtin_commands.json") diff --git a/addon/globalPlugins/command_palette/libs/ujson.cp37-win32.pyd b/addon/globalPlugins/command_palette/libs/ujson.cp37-win32.pyd deleted file mode 100644 index d241ac4..0000000 Binary files a/addon/globalPlugins/command_palette/libs/ujson.cp37-win32.pyd and /dev/null differ diff --git a/addon/globalPlugins/command_palette/libs/ujson.pyd b/addon/globalPlugins/command_palette/libs/ujson.pyd new file mode 100644 index 0000000..7726356 Binary files /dev/null and b/addon/globalPlugins/command_palette/libs/ujson.pyd differ