diff options
author | Muriel de Souza Godoi <muriel@laptop.org> | 2007-11-23 04:10:47 (GMT) |
---|---|---|
committer | Muriel de Souza Godoi <muriel@laptop.org> | 2007-11-23 04:10:47 (GMT) |
commit | a48d36320256d597bd0b6f8a1a6d93ed1a676fac (patch) | |
tree | bc5ee4dbe55f973acdb966907a83474b9215a49e /model.py | |
parent | 074c9e3522934b2f87fb1da7f4a0c57dc7454dc8 (diff) |
Release version 21.
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -32,12 +32,12 @@ _logger = logging.getLogger('model') class Pair(gobject.GObject): __gproperties__ = { - 'aimg' : (str, None, None, None, gobject.PARAM_READWRITE), - 'asnd' : (str, None, None, None, gobject.PARAM_READWRITE), - 'achar' : (str, None, None, None, gobject.PARAM_READWRITE), - 'bimg' : (str, None, None, None, gobject.PARAM_READWRITE), - 'bsnd' : (str, None, None, None, gobject.PARAM_READWRITE), - 'bchar' : (str, None, None, None, gobject.PARAM_READWRITE), + 'aimg' : (str, None, None, None, gobject.PARAM_READWRITE), + 'asnd' : (str, None, None, None, gobject.PARAM_READWRITE), + 'achar': (str, None, None, None, gobject.PARAM_READWRITE), + 'bimg' : (str, None, None, None, gobject.PARAM_READWRITE), + 'bsnd' : (str, None, None, None, gobject.PARAM_READWRITE), + 'bchar': (str, None, None, None, gobject.PARAM_READWRITE), 'color': (gobject.TYPE_INT, 'Base', 'Base', 0, 10, 0, gobject.PARAM_READWRITE) } @@ -122,7 +122,7 @@ class Model(object): self.count = 0 def read(self, game_file): - tmp_root = join(dirname(__file__), 'instance') + tmp_root = join(environ['SUGAR_ACTIVITY_ROOT'], 'instance') temp_folder = tempfile.mkdtemp(dir=tmp_root) self.data['key'] = basename(game_file) |