Closed mzpqnxow closed 3 years ago
As a future development, I think this can be extended easily after resolving envvar values. Opened an issue with this: #16
As a future development, I think this can be extended easily after resolving envvar values. Opened an issue with this: #16
Great, thanks for accepting this and thanks again for this project
This is a small change as described in #8 that expands things like
~/somepath
or~user/somepath
to the appropriate value in the same way the shell would. This usesos.path.expanduser
and is very simpleI tested it with the existing support for the environment variables and didn't see any conflicts or breakage
I didn't put too much thought into the regex for this:
I figure expansion should only happen for values that begin with
~
followed by alphanumeric or underscore. I wonder if the trailing slash should be optional instead of required?