[Python-modules-commits] [safe] 04/08: read words.dat from /usr/share/safe

Carl Suster arcresu-guest at moszumanska.debian.org
Sat Jan 7 07:15:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

arcresu-guest pushed a commit to branch master
in repository safe.

commit 7331200218e2a4179d94d173dfbfa256186c1f9a
Author: Carl Suster <carl at contraflo.ws>
Date:   Sat Jan 7 17:54:59 2017 +1100

    read words.dat from /usr/share/safe
    
    The data file words.dat is moved to /usr/share/safe in the Debian
    package so read the file from there.
---
 safe/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/safe/__init__.py b/safe/__init__.py
index 10e0624..40597b1 100644
--- a/safe/__init__.py
+++ b/safe/__init__.py
@@ -52,7 +52,7 @@ def _load_words():
 
     filepath = os.environ.get(
         'PYTHON_SAFE_WORDS_FILE',
-        os.path.join(os.path.dirname(__file__), 'words.dat'),
+        os.path.join('/usr/share/safe', 'words.dat'),
     )
     words = {}
     with open(filepath, 'rb') as f:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/safe.git



More information about the Python-modules-commits mailing list