-
-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow NVDA to still function if a component changes the current direc…
…tory (#11707) * nvda.pyw: ensure that all paths coming from commandline arguments are made absolute as soon as possible to protect against the current directory changing later on. Also store NVDA's app dir in globalVars. * Use the NVDA app dir rather than the current directory for relative paths. * Fix unit tests. * Remove all usage of os.getcwd and replace it with globalVars.appDir * Replace all remaining os.path.join("* calls with os.path.join(globalVars.appDir calls. * nvda.pyw: provide an absolute path to gettext.translate * nvda_slave: set globalVars.appDir, and provide an absolute path to gettext.translate * getDefaultLogFilePath no longer uses the current directory. * brailleTables: TABLES_DIR is no longer relative to the current directory. * ui.browsableMessage no longer uses a relative path to get to the html file. * Change all playWavefile calls to be non-relative * Fix linting issues * another relative wave file path * Fix linting issues * speechDictHandler: the path to builtin.dic is no longer relative. * config: slave_fileName is no longer relative * Lilli braille driver: path to dll is no longer relative. * Fix linting issues * nvda_slave: don't load nvdaRemote with a relative path. * Remove all usage of os.path.abspath, but add a couple of assertions in places where we can't be completely sure the path is absolute. * Fix translation comments * Add the ALTERED_LIBRARY_SEARCH_PATH constant to winKernel and use it in NVDAHelper and nvda_slave when loading NvDAHelperRemote. * Lili braille dirver: remove unneeded import. * Update what's new * addonHandler.getCodeAddon: make sure to normalize paths when comparing them to stop an infinite while loop introduced in #11650
- Loading branch information
1 parent
afb8fce
commit 40e1d07
Showing
29 changed files
with
182 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.