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

codecs.open does not support tidle in settings_file #197

Open
wgong opened this issue Oct 31, 2020 · 1 comment
Open

codecs.open does not support tidle in settings_file #197

wgong opened this issue Oct 31, 2020 · 1 comment

Comments

@wgong
Copy link

wgong commented Oct 31, 2020

I like to store settings in my home dir,
in cfg.py,json_file.py,toml_file.py,yaml_file.py
with codecs.open(settings_file, 'r', 'utf-8') as f: failed when settings_file contains tidle
please change it to
with codecs.open(os.path.expanduser(settings_file), 'r', 'utf-8') as f:
Thanks

@drgarcia1986
Copy link
Owner

LGTM @wgong, could you open a pull request with this change?

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

2 participants