Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorMuriel 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)
commita48d36320256d597bd0b6f8a1a6d93ed1a676fac (patch)
treebc5ee4dbe55f973acdb966907a83474b9215a49e /model.py
parent074c9e3522934b2f87fb1da7f4a0c57dc7454dc8 (diff)
Release version 21.
Diffstat (limited to 'model.py')
-rw-r--r--model.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/model.py b/model.py
index 2b25949..b3498bc 100644
--- a/model.py
+++ b/model.py
@@ -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)