Skip to content

Commit

Permalink
Read default value for vardir option from env
Browse files Browse the repository at this point in the history
Now the default value for the `vardir` option is taken from the `VARDIR`
env variable when it is defined.
  • Loading branch information
ylobankov committed Apr 27, 2022
1 parent 9e70ce7 commit b678582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/options.py
Expand Up @@ -256,7 +256,7 @@ def __init__(self):
parser.add_argument(
"--vardir",
dest="vardir",
default='/tmp/t',
default=os.environ.get('VARDIR') or '/tmp/t',
help=format_help(
"""
Path to data directory.
Expand Down

0 comments on commit b678582

Please sign in to comment.