Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArtActivity.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-08-12 02:00:08 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-08-12 02:00:08 (GMT)
commitcc87d98d21c6b06e8797522e28a1df2a11c5d923 (patch)
tree54eb7df8b8ad25773ff0bf6de6376692e1140b4e /TurtleArtActivity.py
parentd3f2991b20463329097bffa6e9a8fad89bca40c4 (diff)
fixed save/load problem with old builds
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r--TurtleArtActivity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index 2684a33..7c0838d 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -390,8 +390,8 @@ class TurtleArtActivity(activity.Activity):
if hasattr(self, 'tw'):
_logger.debug("Reading file %s" % file_path)
- # should be a tar file
- if file_path[-5:] == ".gtar":
+ # should be a gtar (newer builds) or tar (767) file
+ if file_path[-5:] == ".gtar" or file_path[-4:] == ".tar":
tar_fd = tarfile.open(file_path, 'r')
tmpdir = tempfile.mkdtemp()
try: