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

When NVDA config path is overwritten from the command line open actual config dir when using a keyboard command #10911

Merged
merged 2 commits into from
Mar 30, 2020
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
16 changes: 10 additions & 6 deletions source/systemUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@
import winUser
import os


def openUserConfigurationDirectory():
"""Opens directory containing config files for the current user"""
import config
path = config.getUserDefaultConfigPath()
if not path:
raise ValueError("no user default config path")
config.initConfigPath(path)
import globalVars
try:
# configPath is guaranteed to be correct for NVDA, however it will not exist for NVDA_slave.
path = globalVars.appArgs.configPath
lukaszgo1 marked this conversation as resolved.
Show resolved Hide resolved
except AttributeError:
import config
path = config.getUserDefaultConfigPath()
if not path:
raise ValueError("no user default config path")
config.initConfigPath(path)
shellapi.ShellExecute(0, None, path, None, None, winUser.SW_SHOWNORMAL)


Expand Down