Skip to content

Commit abb2b2d

Browse files
committed
change imports so they work in NVDA
1 parent ca87cb8 commit abb2b2d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

NVDA-addon/addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import wx
2-
import MathCATgui
3-
import yaml
2+
from . import MathCATgui
3+
from . import yaml
44
import os
55
import glob
66
import sys
@@ -10,7 +10,7 @@
1010

1111
# initialize the user preferences tuples
1212
user_preferences = dict([("", "")])
13-
#Sepech_Language is derived from the folder structure
13+
#Speech_Language is derived from the folder structure
1414
Speech_Impairment = ("LearningDisability", "Blindness", "LowVision")
1515
#Speech_SpeechStyle is derived from the yaml files under the selected language
1616
Speech_Verbosity = ("Terse", "Medium", "Verbose")
@@ -43,7 +43,7 @@ def path_to_languages_folder():
4343

4444
def load_default_preferences():
4545
global user_preferences
46-
#load default preferences into the user preferences data structure (overwites existing)
46+
#load default preferences into the user preferences data structure (overwrites existing)
4747
if os.path.exists(path_to_default_preferences()):
4848
with open(path_to_default_preferences(), encoding='utf-8') as f:
4949
user_preferences = yaml.load(f, Loader=yaml.FullLoader)

NVDA-addon/addon/globalPlugins/MathCAT/MathCATgui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
###########################################################################
99

1010
import wx
11-
import wx.xrc
11+
# from . import xrc
1212

1313
import gettext
1414
_ = gettext.gettext

0 commit comments

Comments
 (0)