summaryrefslogtreecommitdiff
path: root/CAO
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-15 01:15:13 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-15 01:15:13 +0100
commit9d6c80bac902cb5c32146e2a891aa5e1317e144e (patch)
treeb7f0ee6d2fe101cb3f3fe999165987b6ccf9e756 /CAO
parentc7ede2f1a564fa180e44d341f0019da443e9a005 (diff)
rearchitecture the data files
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'CAO')
-rw-r--r--CAO/Cards.py4
-rw-r--r--CAO/GameManager.py2
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: