Skip to content

Commit

Permalink
It is now possible to provide app modules for executables containing …
Browse files Browse the repository at this point in the history
…a dot (.) in their names. Dots are replaced with underscores (_).

Issue #5323. PR #6286.
  • Loading branch information
josephsl authored and jcsteh committed Sep 16, 2016
1 parent 2ea883c commit adcab5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 @@ -108,7 +108,8 @@ def getAppModuleFromProcessID(processID):
with _getAppModuleLock:
mod=runningTable.get(processID)
if not mod:
appName=getAppNameFromProcessID(processID)
# #5323: Certain executables contain dots as part of their file names.
appName=getAppNameFromProcessID(processID).replace(".","_")
mod=fetchAppModule(processID,appName)
if not mod:
raise RuntimeError("error fetching default appModule")
Expand Down

0 comments on commit adcab5e

Please sign in to comment.