diff options
Diffstat (limited to 'CAO')
-rw-r--r-- | CAO/Cards.py | 4 | ||||
-rw-r--r-- | CAO/GameManager.py | 2 |
2 files changed, 3 insertions, 3 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] 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: |