diff --git a/source/appModuleHandler.py b/source/appModuleHandler.py index 63bee001b2b..e8b65af3b8e 100644 --- a/source/appModuleHandler.py +++ b/source/appModuleHandler.py @@ -1,7 +1,7 @@ # -*- coding: UTF-8 -*- # A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2006-2023 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Patrick Zajda, Joseph Lee, -# Babbage B.V., Mozilla Corporation, Julien Cochuyt, Leonard de Ruijter +# Babbage B.V., Mozilla Corporation, Julien Cochuyt, Leonard de Ruijter, Cyrille Bougot # This file is covered by the GNU General Public License. # See the file COPYING for more details. @@ -48,7 +48,7 @@ # Dictionary of processID:appModule pairs used to hold the currently running modules runningTable: Dict[int, AppModule] = {} -_CORE_APP_MODULES_PATH: os.PathLike = appModules.__path__[0] +_CORE_APP_MODULES_PATH: os.PathLike = os.path.dirname(appModules.__spec__.origin) _getAppModuleLock=threading.RLock() #: Notifies when another application is taking foreground. #: This allows components to react upon application switches. diff --git a/user_docs/en/changes.t2t b/user_docs/en/changes.t2t index a7ebd3d1f91..9961a548ac3 100644 --- a/user_docs/en/changes.t2t +++ b/user_docs/en/changes.t2t @@ -84,6 +84,7 @@ Similarly, the new ``getCompletionRoutine`` method allows you to convert a pytho - ``offsets.OffsetsTextInfo._get_boundingRects`` should now always return ``List[locationHelper.rectLTWH]`` as expected for a subclass of ``textInfos.TextInfo``. (#12424) - ``highlight-color`` is now a format field attribute. (#14610) - NVDA should more accurately determine if a logged message is coming from NVDA core. (#14812) +- NVDA will no longer log inaccurate warnings or errors about deprecated appModules. (#14806) - === Deprecations ===