def initialize():
	"""Initializes the appModule subsystem. 
	"""
	global NVDAProcessID,_importers
	NVDAProcessID=os.getpid()
	config.addConfigDirsToPythonPackagePath(appModules)
	_importers=list(pkgutil.iter_importers("appModules.__init__"))
Exemple #2
0
def initialize():
    """Initializes the appModule subsystem. 
	"""
    global NVDAProcessID, _importers
    NVDAProcessID = os.getpid()
    config.addConfigDirsToPythonPackagePath(appModules)
    _importers = list(pkgutil.iter_importers("appModules.__init__"))
def initialize():
	config.addConfigDirsToPythonPackagePath(globalPlugins)
	for plugin in listPlugins():
		try:
			runningPlugins.add(plugin())
		except:
			log.error("Error initializing global plugin %r" % plugin, exc_info=True)
Exemple #4
0
def initialize():
    """Initializes the appModule subsystem. 
	"""
    global _importers
    config.addConfigDirsToPythonPackagePath(appModules)
    _importers = list(pkgutil.iter_importers("appModules.__init__"))
    if not initialize._alreadyInitialized:
        initialize._alreadyInitialized = True
def initialize():
    config.addConfigDirsToPythonPackagePath(globalPlugins)
    for plugin in listPlugins():
        try:
            runningPlugins.add(plugin())
        except:
            log.error("Error initializing global plugin %r" % plugin,
                      exc_info=True)
 def initialize(cls):
     config.addConfigDirsToPythonPackagePath(cls.enginePackage)
     config.post_configProfileSwitch.register(
         cls.handlePostConfigProfileSwitch)
     cls.init_config()
     cls.getEngineList()
     engine_name = config.conf[cls.configSectionName]["engine"]
     cls.setCurrentEngine(engine_name)
     cls.isInitialized = True
Exemple #7
0
def initialize():
	global handler
	config.addConfigDirsToPythonPackagePath(brailleDisplayDrivers)
	log.info("Using liblouis version %s" % louis.version())
	handler = BrailleHandler()
	handler.setDisplayByName(config.conf["braille"]["display"])

	# Update the display to the current focus/review position.
	if not handler.enabled or not api.getDesktopObject():
		# Braille is disabled or focus/review hasn't yet been initialised.
		return
	if handler.tether == handler.TETHER_FOCUS:
		handler.handleGainFocus(api.getFocusObject())
	else:
		handler.handleReviewMove()
def initialize():
	global _importers, _store
	
	import imp
	webModules = imp.new_module("webModules")
	webModules.__path__ = list()
	import sys
	sys.modules["webModules"] = webModules
	config.addConfigDirsToPythonPackagePath(webModules)
	webModules.__path__.insert(
		1 if config.conf["development"]["enableScratchpadDir"] else 0,
		os.path.join(globalVars.appArgs.configPath, "webModules")
	)
	_importers = list(pkgutil.iter_importers("webModules.__init__"))
	
	from ..store.webModule import WebModuleStore
	_store = WebModuleStore()
Exemple #9
0
def initialize():
    global store
    global _importers

    import imp
    webModules = imp.new_module("webModules")
    webModules.__path__ = list()
    import sys
    sys.modules["webModules"] = webModules
    config.addConfigDirsToPythonPackagePath(webModules)
    if nvdaVersion < (2019,
                      1) and not config.conf["webAccess"]["disableUserConfig"]:
        webModules.__path__.insert(
            0, os.path.join(globalVars.appArgs.configPath, "webModules"))
    _importers = list(pkgutil.iter_importers("webModules.__init__"))

    from ..store.webModule import WebModuleStore
    store = WebModuleStore()
Exemple #10
0
def initialize():
    config.addConfigDirsToPythonPackagePath(synthDrivers)
    config.post_configProfileSwitch.register(handlePostConfigProfileSwitch)
def initialize():
    config.addConfigDirsToPythonPackagePath(synthDrivers)
def initialize():
	config.addConfigDirsToPythonPackagePath(synthDrivers)
Exemple #13
0
def initialize():
    """Initializes the appModule subsystem. 
	"""
    config.addConfigDirsToPythonPackagePath(appModules)
    if not initialize._alreadyInitialized:
        initialize._alreadyInitialized = True
Exemple #14
0
def initialize():
	config.addConfigDirsToPythonPackagePath(synthDrivers)
	config.post_configProfileSwitch.register(handlePostConfigProfileSwitch)
Exemple #15
0
def initialize():
    global handler
    config.addConfigDirsToPythonPackagePath(visionEnhancementProviders)
    handler = VisionHandler()