Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taexporthtml.py
diff options
context:
space:
mode:
authorWalter 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)
commitb7560b44fd9b9cb8feb7f15f9d0bc90fbf0dfcc8 (patch)
tree7a48ab1629cf5256694ab73253ee9fdeb1a6f229 /taexporthtml.py
parente9aa825d1f10faa9420662303d71134ad5e363a9 (diff)
changes to enable command-line operation
Diffstat (limited to 'taexporthtml.py')
-rw-r--r--taexporthtml.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/taexporthtml.py b/taexporthtml.py
index f3f7fbb..7fa0748 100644
--- a/taexporthtml.py
+++ b/taexporthtml.py
@@ -33,8 +33,9 @@ def save_html(self, tw, embed_flag=True):
datapath = os.path.join(activity.get_activity_root(), "instance")
except:
# early versions of Sugar (656) didn't support get_activity_root()
- datapath = \
- "/home/olpc/.sugar/default/org.laptop.TurtleArtActivity/instance"
+ datapath = os.path.join( \
+ os.environ['HOME'], \
+ ".sugar/default/org.laptop.TurtleArtActivity/instance")
# dictionary defines the html wrappers around template elements
# start of block, end of block