Skip to content

Python Console: Additions to the initial namespace (#9789)#9790

Merged
michaelDCurran merged 1 commit into
nvaccess:masterfrom
accessolutions:i9789
Jun 25, 2019
Merged

Python Console: Additions to the initial namespace (#9789)#9790
michaelDCurran merged 1 commit into
nvaccess:masterfrom
accessolutions:i9789

Conversation

@JulienCochuyt

@JulienCochuyt JulienCochuyt commented Jun 22, 2019

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #9789

Summary of the issue:

The initial namespace of the Python Console lacks a few common imports that would allow to take full advantage of the tab-completion capability:

  • appModules
  • config
  • controlTypes
  • globalPlugins
  • textInfos

Furthermore, one cannot customize it using a global plugin without first initializing the console.

Description of how this pull request fixes the issue:

  • Add the above-mentioned imports to the initial namespace.
  • Initialize the namespace in a dedicated method.

Testing performed:

Known issues with pull request:

Change log entry:

@michaelDCurran michaelDCurran merged commit 63eaeb5 into nvaccess:master Jun 25, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jun 25, 2019
michaelDCurran added a commit that referenced this pull request Jun 25, 2019
@JulienCochuyt JulienCochuyt deleted the i9789 branch June 26, 2019 04:45
JulienCochuyt added a commit to accessolutions/nvda that referenced this pull request May 2, 2020
feerrenrut pushed a commit that referenced this pull request May 7, 2020
…sole (PR #11090)

A few new entries were missing as of PR #9064 and PR #9790
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.

Python Console: Additions to the initial namespace

3 participants