Esempio n. 1
0
def initialize():
	"""Initializes the appModule subsystem. 
	"""
	global NVDAProcessID,_importers
	NVDAProcessID=os.getpid()
	config.addConfigDirsToPythonPackagePath(appModules)
	_importers=list(pkgutil.iter_importers("appModules.__init__"))
Esempio n. 2
0
def initialize():
    """Initializes the appModule subsystem. 
	"""
    global NVDAProcessID, _importers
    NVDAProcessID = os.getpid()
    config.addConfigDirsToPythonPackagePath(appModules)
    _importers = list(pkgutil.iter_importers("appModules.__init__"))
Esempio n. 3
0
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)
Esempio n. 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)
Esempio n. 6
0
 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
Esempio n. 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()
Esempio n. 8
0
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()
Esempio n. 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()
Esempio n. 10
0
def initialize():
    config.addConfigDirsToPythonPackagePath(synthDrivers)
    config.post_configProfileSwitch.register(handlePostConfigProfileSwitch)
Esempio n. 11
0
def initialize():
    config.addConfigDirsToPythonPackagePath(synthDrivers)
Esempio n. 12
0
def initialize():
	config.addConfigDirsToPythonPackagePath(synthDrivers)
Esempio n. 13
0
def initialize():
    """Initializes the appModule subsystem. 
	"""
    config.addConfigDirsToPythonPackagePath(appModules)
    if not initialize._alreadyInitialized:
        initialize._alreadyInitialized = True
Esempio n. 14
0
def initialize():
	config.addConfigDirsToPythonPackagePath(synthDrivers)
	config.post_configProfileSwitch.register(handlePostConfigProfileSwitch)
Esempio n. 15
0
def initialize():
    global handler
    config.addConfigDirsToPythonPackagePath(visionEnhancementProviders)
    handler = VisionHandler()