From d4d37ee87fd121a3a7bd007f8ab86032bacdad3e Mon Sep 17 00:00:00 2001
From: ulif <uli@gnufix.de>
Date: Tue, 10 Nov 2015 18:43:37 +0100
Subject: [PATCH] Use .ini filename extension for config.

---
 diceware/config.py   | 2 +-
 tests/test_config.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/diceware/config.py b/diceware/config.py
index 691905c..be9e968 100644
--- a/diceware/config.py
+++ b/diceware/config.py
@@ -42,7 +42,7 @@ def valid_locations():
     user_home = os.path.expanduser("~")
     result = []
     if user_home != "~":
-        result = [os.path.join(user_home, ".diceware"), ]
+        result = [os.path.join(user_home, ".diceware.ini"), ]
     return result
 
 
diff --git a/tests/test_config.py b/tests/test_config.py
index bb7b7db..5935433 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -14,5 +14,5 @@ class TestConfigModule(object):
         new_home.ensure_dir()
         monkeypatch.setenv("HOME", str(new_home))
         assert valid_locations() == [
-            str(new_home / ".diceware")
+            str(new_home / ".diceware.ini")
             ]
-- 
GitLab