From 9d6c80bac902cb5c32146e2a891aa5e1317e144e Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 15 Jun 2015 01:15:13 +0100 Subject: rearchitecture the data files Signed-off-by: Olivier Gayot --- CAO/Cards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CAO/Cards.py') 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] -- cgit v1.2.3