Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving positions: file not found error when files folder does not exist #3

Open
josephsl opened this issue Dec 15, 2017 · 0 comments
Open

Comments

@josephsl
Copy link
Owner

Hi,

When trying to save positions, NVDA says, "file not found".

STR:

  1. Try saving a position (NvDA+Shift=L) for an app.
  2. Type position coordinates and press Enter.

Expected: NVDA saves positions.
Actual:

ERROR - unhandled exception (08:31:09.701):
Traceback (most recent call last):
File "wx_misc.pyc", line 1367, in Notify
File "wx_core.pyc", line 16869, in Notify
File "C:\Users\User\AppData\Roaming\nvda\addons\goldenCursor\globalPlugins\goldenCursor.py", line 201, in saving
File "codecs.pyc", line 896, in open
IOError: [Errno 2] No such file or directory: path

Cause: the add-on assumes a folder named "files" already exists.
Solution: catch this case and create a new directory.

Thanks.

josephsl added a commit that referenced this issue Dec 15, 2017
Previously, the add-on assumed that files path was available. However, there are times when it is not (such as accidentally deleting it). Thus take this into account and create the files folder when saving positions for the first time.
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

No branches or pull requests

1 participant