Skip to content
Snippets Groups Projects
Commit d4d37ee8 authored by ulif's avatar ulif
Browse files

Use .ini filename extension for config.

parent 20989bbc
No related branches found
Tags v0.2
No related merge requests found
...@@ -42,7 +42,7 @@ def valid_locations(): ...@@ -42,7 +42,7 @@ def valid_locations():
user_home = os.path.expanduser("~") user_home = os.path.expanduser("~")
result = [] result = []
if user_home != "~": if user_home != "~":
result = [os.path.join(user_home, ".diceware"), ] result = [os.path.join(user_home, ".diceware.ini"), ]
return result return result
......
...@@ -14,5 +14,5 @@ class TestConfigModule(object): ...@@ -14,5 +14,5 @@ class TestConfigModule(object):
new_home.ensure_dir() new_home.ensure_dir()
monkeypatch.setenv("HOME", str(new_home)) monkeypatch.setenv("HOME", str(new_home))
assert valid_locations() == [ assert valid_locations() == [
str(new_home / ".diceware") str(new_home / ".diceware.ini")
] ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment