Skip to content

Commit

Permalink
AppModuleHandler: Handle apps where a dot is in the middle of an exec…
Browse files Browse the repository at this point in the history
…utable name. re nvaccess#5323

To avoid module lookup issue, a 'dot' (.) is replaced by an underscore (_).
  • Loading branch information
josephsl committed Aug 22, 2016
1 parent dde5ed4 commit c5b6057
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/appModuleHandler.py
@@ -1,7 +1,7 @@
# -*- coding: UTF-8 -*-
#appModuleHandler.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2006-2014 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Patrick Zajda
#Copyright (C) 2006-2016 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Patrick Zajda, Joseph Lee
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.

Expand Down Expand Up @@ -109,6 +109,9 @@ def getAppModuleFromProcessID(processID):
mod=runningTable.get(processID)
if not mod:
appName=getAppNameFromProcessID(processID)
# #5323: Certain executables contain dots as part of its file name.
if "." in appName:
appName = appName.replace(".","_")
mod=fetchAppModule(processID,appName)
if not mod:
raise RuntimeError("error fetching default appModule")
Expand Down

0 comments on commit c5b6057

Please sign in to comment.