Mercurial > boomslang
comparison gamelib/data.py @ 15:05f4e9e09764
rename in data.py as well
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sun, 22 Aug 2010 16:30:04 +0200 |
parents | f2c3b516741b |
children | fe51223e0c8d |
comparison
equal
deleted
inserted
replaced
14:38c2bb6f4d1a | 15:05f4e9e09764 |
---|---|
6 ''' | 6 ''' |
7 | 7 |
8 import os | 8 import os |
9 | 9 |
10 data_py = os.path.abspath(os.path.dirname(__file__)) | 10 data_py = os.path.abspath(os.path.dirname(__file__)) |
11 data_dir = os.path.normpath(os.path.join(data_py, '..', 'data')) | 11 data_dir = os.path.normpath(os.path.join(data_py, '..', 'Resources')) |
12 | 12 |
13 def filepath(filename): | 13 def filepath(filename): |
14 '''Determine the path to a file in the data directory. | 14 '''Determine the path to a file in the data directory. |
15 ''' | 15 ''' |
16 return os.path.join(data_dir, filename) | 16 return os.path.join(data_dir, filename) |