diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-03-28 14:30:40 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-03-28 14:30:40 (GMT) |
commit | b7560b44fd9b9cb8feb7f15f9d0bc90fbf0dfcc8 (patch) | |
tree | 7a48ab1629cf5256694ab73253ee9fdeb1a6f229 /tasetup.py | |
parent | e9aa825d1f10faa9420662303d71134ad5e363a9 (diff) |
changes to enable command-line operation
Diffstat (limited to 'tasetup.py')
-rw-r--r-- | tasetup.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -305,7 +305,9 @@ def load_image(path, dir, file): datapath = os.path.join(activity.get_activity_root(), "data") except: # early versions of Sugar (656) didn't support get_activity_root() - datapath = "/home/olpc/.sugar/default/org.sugarlabs.TAPortfolioActivity/data" + datapath = os.path.join( \ + os.environ['HOME'], \ + ".sugar/default/org.laptop.TurtleArtActivity/data") # first try to open the cached image # if you fail, open the .svg file and cache the result as png |