Skip to content

Commit

Permalink
Rename config dir env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
geckon committed Dec 2, 2018
1 parent 88d0f9c commit 2ead8fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The game will search for the configuration file in the following locations

- current working directory
- home directory
- directory specified by twoN_SOLITAIRE_CONF_DIR environment
- directory specified by TWN_SOLITAIRE_CONF_DIR environment
variable

### Current state
Expand Down
4 changes: 2 additions & 2 deletions twnsol/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def read_config_file():
Config file will be looked for in these directories in this order:
- current working directory
- home directory
- directory specified by twoN_SOLITAIRE_CONF_DIR environment
- directory specified by TWN_SOLITAIRE_CONF_DIR environment
variable
Return the config file contents if found, empty directory otherwise.
"""
env_var = 'twoN_SOLITAIRE_CONF_DIR'
env_var = 'TWN_SOLITAIRE_CONF_DIR'

locations = [
(os.curdir, 'current directory'),
Expand Down

0 comments on commit 2ead8fb

Please sign in to comment.