Bonjour.
Voici ce que l'on peut trouver dans l'extension des commandes de base de
NVDA, inspiré par le code de NVDA et créé pour explorer sa propre
configuration:
def onExploreUserConfigFolderMenu(self, evt):
"""Opens directory containing config files for the current user"""
import globalVars
try:
# configPath is guaranteed to be correct for NVDA, however
it will not exist for NVDA_slave.
path = os.path.abspath(globalVars.appArgs.configPath)
except AttributeError:
path = config.getUserDefaultConfigPath()
if not path:
log.error("openUserConfigurationDirectory: no user
default config path")
return
config.initConfigPath(path)
wx.CallAfter(self.exploreFolder, path)
Amitiés.
Paul.
Le 14/06/2022 12:05, yannick a écrit :
bonjour comment puis je récupérer le dossier qui mène au dossier de
NVDA, celui qui contient le dossier des addons ?
je sais que je peux utiliser l'attribut __file__ d'un fichier source,
mais je suppose qu'il y a autre chose de prévu,
merci !