Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import easeOfAccess
import COMRegistrationFixes
import winKernel

import importlib.machinery
_wsh=None
def _getWSH():
global _wsh
Expand Down Expand Up @@ -210,7 +210,7 @@ def removeOldProgramFiles(destPath):
# in a newer version of NVDA.
for curDestDir,subDirs,files in os.walk(destPath):
for f in files:
if f.endswith((".pyc", ".pyo")):
if f.endswith((".pyc", ".pyo", ".pyd")) and not f.endswith(importlib.machinery.EXTENSION_SUFFIXES[0]):
# This also removes compiled files from system config,
# but that is fine.
path=os.path.join(curDestDir, f)
Expand Down