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 ++-- CAO/GameManager.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'CAO') 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] diff --git a/CAO/GameManager.py b/CAO/GameManager.py index 5600f1e..6e0d956 100644 --- a/CAO/GameManager.py +++ b/CAO/GameManager.py @@ -7,7 +7,7 @@ class GameManager(): def __init__(self): self.langs = {} - for filename in next(os.walk('lang'))[1]: + for filename in next(os.walk('usr/share/cao/lang'))[1]: self.langs[filename] = {} for lang in self.langs: -- cgit v1.2.3