From 50a253b1b9974ff7c5b392f9d30917b049cf1aa8 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 01 Mar 2009 09:36:42 +0000 Subject: Add extension to temp icon file names #458 --- (limited to 'src') diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py index eb35307..7050456 100644 --- a/src/sugar/bundle/activitybundle.py +++ b/src/sugar/bundle/activitybundle.py @@ -251,7 +251,7 @@ class ActivityBundle(Bundle): return os.path.join(self._path, icon_path) else: icon_data = self.get_file(icon_path).read() - temp_file, temp_file_path = tempfile.mkstemp(self._icon) + temp_file, temp_file_path = tempfile.mkstemp(prefix=self._icon, suffix='.svg') os.write(temp_file, icon_data) os.close(temp_file) return util.TempFilePath(temp_file_path) -- cgit v0.9.1