aboutsummaryrefslogtreecommitdiff
path: root/english-orthography.py
diff options
context:
space:
mode:
Diffstat (limited to 'english-orthography.py')
-rw-r--r--english-orthography.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/english-orthography.py b/english-orthography.py
index 914cf39..b7572c3 100644
--- a/english-orthography.py
+++ b/english-orthography.py
@@ -18,7 +18,15 @@
# You should have received a copy of the GNU General Public License
# along with thogai. If not, see <http://www.gnu.org/licenses/>.
-from plover.system.english_stenotype import ORTHOGRAPHY_RULES
+import sys
+
+if len(sys.argv) != 2:
+ print(f'Usage: {sys.argv[0]} PATH_TO_PLOVER_SOURCE')
+ sys.exit(1)
+
+sys.path.append(sys.argv[1] + '/plover/system')
+
+from english_stenotype import ORTHOGRAPHY_RULES
def make_elisp_safe(pattern):
# Remove negative lookbehind assertion not supported by elisp