Example #1
0
 def __init__(self):
     self.DNSName = 'Dragon'
     self.config_path = self.get_check_config_locations()
     self.config_dir = str(Path(self.config_path).parent)
     self.status = natlinkstatus.NatlinkStatus()
     self.getConfig()  # gets self.config and self.config_encoding
     self.check_config()
Example #2
0
import sys
import os
import filecmp
import shutil
import string
import natlink
from natlink import loader
from natlink import natlinkstatus

from dtactions.unimacro import unimacroutils
from dtactions.unimacro import unimacroactions as actions

from unimacro import natlinkutilsbj as natbj
from unimacro import check_unimacro_grammars

status = natlinkstatus.NatlinkStatus()
natlinkmain = loader.NatlinkMain()

# extra commands for controlling actions module:
try:
    spokenforms = __import__('spokenforms')
except ImportError:
    spokenforms = None
    print('warning: spokenforms module not imported')

tracecount = list(map(str, list(range(1, 10))))


#Words that are 'filtered out' (actually: removed) in Filter Mode
#See below for the different modes
def ReadFilteredWords(Filename):