diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-15 01:15:13 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-15 01:15:13 +0100 |
commit | 9d6c80bac902cb5c32146e2a891aa5e1317e144e (patch) | |
tree | b7f0ee6d2fe101cb3f3fe999165987b6ccf9e756 /CAO/Cards.py | |
parent | c7ede2f1a564fa180e44d341f0019da443e9a005 (diff) |
rearchitecture the data files
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'CAO/Cards.py')
-rw-r--r-- | CAO/Cards.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CAO/Cards.py b/CAO/Cards.py index b796b97..01909fb 100644 --- a/CAO/Cards.py +++ b/CAO/Cards.py @@ -2,12 +2,12 @@ class Cards(): @staticmethod def get_white_cards(lang): ''' Read the file containing the white cards and return a list of cards ''' - with open('lang/' + lang + '/cards/white') as fd: + with open('usr/share/cao/lang/' + lang + '/cards/white') as fd: return [line.strip() for line in fd] @staticmethod def get_black_cards(lang): ''' Read the file containing the black cards and return a list of cards ''' - with open('lang/' + lang + '/cards/black') as fd: + with open('usr/share/cao/lang/' + lang + '/cards/black') as fd: return [line.strip() for line in fd] |