Skip to content

Remove support for Python 3.7 - #69

Draft
Nael-Sayegh wants to merge 2 commits into
devfrom
delete-version
Draft

Remove support for Python 3.7#69
Nael-Sayegh wants to merge 2 commits into
devfrom
delete-version

Conversation

@Nael-Sayegh

Copy link
Copy Markdown
Owner

Remove support for Python 3.7, which means that the minimum version of NVDA is now 2024.1.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Removes Python 3.7 support from the scanvox plugin, locking compatibility to Python 3.11 only.

  • Deleted the branch handling for Python 3.7
  • Retained only the Python 3.11 library path
  • Emits an error for any other Python version
Comments suppressed due to low confidence (2)

addon/globalPlugins/scanvox/init.py:24

  • [nitpick] Enhance the error message by including the actual version numbers, e.g., log.error(f"Unsupported Python {sys.version_info.major}.{sys.version_info.minor}"), to aid debugging.
	log.error("Unsupported python version")

addon/globalPlugins/scanvox/init.py:24

  • Add a test case that runs under an unsupported Python version (e.g., 3.10) to verify that the error branch is triggered as expected.
	log.error("Unsupported python version")

if sys.version_info.major == 3 and sys.version_info.minor == 7:
lib = os.path.join(os.path.dirname(__file__), "lib", "3.7")
elif sys.version_info.major == 3 and sys.version_info.minor == 11:
if sys.version_info.major == 3 and sys.version_info.minor == 11:

Copilot AI Jul 2, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider simplifying the version check by comparing sys.version_info[:2] directly, e.g., if sys.version_info[:2] == (3, 11):, for improved readability.

Suggested change
if sys.version_info.major == 3 and sys.version_info.minor == 11:
if sys.version_info[:2] == (3, 11):

Copilot uses AI. Check for mistakes.
@Nael-Sayegh

Copy link
Copy Markdown
Owner Author

@copilote For ease of management and modification, I prefer to keep the Python version check in the form of if ... and ....

Base automatically changed from dev to main September 4, 2025 15:22
@Nael-Sayegh
Nael-Sayegh changed the base branch from main to dev February 27, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants