Skip to content

Commit

Permalink
add default for HOME and PWD if not in ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
krysopath committed Apr 20, 2019
1 parent 3e5c5db commit 5bb0699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vaultify/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
MODULE_BASE_DIR = os.path.dirname(
os.path.realpath(__file__))
ETC_DEFAULT_CONFIG = '/etc/default/vaultify.yml'
USER_CONFIG = '{}/.vaultify.yml'.format(os.environ.get("HOME"))
LOCAL_CONFIG = '{}/.vaultify.yml'.format(os.environ.get("PWD"))
USER_CONFIG = '{}/.vaultify.yml'.format(os.environ.get("HOME", '.'))
LOCAL_CONFIG = '{}/.vaultify.yml'.format(os.environ.get("PWD", '.'))

CFG_DEFAULT_FILES = [
ETC_DEFAULT_CONFIG,
Expand Down

0 comments on commit 5bb0699

Please sign in to comment.