Skip to content

Fixed import errors and updated dependencies. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions addon/globalPlugins/command_palette/command_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Binary file not shown.
Binary file not shown.