Skip to content

Commit

Permalink
working on getting "show all grammars" work...
Browse files Browse the repository at this point in the history
  • Loading branch information
quintijn committed Oct 12, 2022
1 parent dad4f6f commit fe3e38b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/unimacro/_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,9 @@ def checkOriginalFileWithActualTxtPy(name, org_path, txt_path, py_path):
utilGrammar.startInifile(modName = '_control')
utilGrammar.initialize()
Words = ['show', 'all', 'grammars']
FR = {}
print(f'natbj.loadedGrammars: {natbj.loadedGrammars}')
utilGrammar.rule_taskswitch(Words)
utilGrammar.gotResults_show(Words, FR)
finally:
natlink.natDisconnect()
else:
Expand Down
2 changes: 1 addition & 1 deletion src/unimacro/natlinkutilsbj.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ def BrowseShow(self):
"""
pypath = str(Path(__file__).parent)
if pypath not in sys.path:
sys.path.insert(0, pypath)
sys.path.insert(0, pypath)
pypath = ';'.join(sys.path)
os.environ['PYTHONPATH'] = pypath
unimacroutils.AppBringUp('Browser',Exec=PythonwinExe,Args='/app BrowseGrammarApp.py')
Expand Down

0 comments on commit fe3e38b

Please sign in to comment.