Make .clanvasrc file location configurable. #3
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Currently, the
.clanvasrc
file is hardcoded to the user's home directory (~/.clanvasrc
)It would be nice if there were ways to specify alternate locations for those with custom configurations.
Add a function that resolves the path of the rcfile by using an approach with a series of fallbacks:
--rc-file
, if they do, use that option's value.CLANVASRCPATH
, if they do, use that option's value.join(expanduser('~'), '.clanvasrc')
Use
argparse. ArgumentParser
to read the command-line arguments, andos.environ
to read environment variables.The text was updated successfully, but these errors were encountered: