Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-01-12 20:48:06 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-01-12 20:48:06 (GMT)
commit4c07e090fafacd2277ed57ecce9d0f19dff49b7d (patch)
treeea46fd1146596ef1b15dd2ff231883f1b14efbcd
parent6971ddb9a44782cd525d6a0f416bdf3cdb82d346 (diff)
Get the icon from activity not root
-rw-r--r--sugar/activity/bundle.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sugar/activity/bundle.py b/sugar/activity/bundle.py
index 3951c42..af6c3d2 100644
--- a/sugar/activity/bundle.py
+++ b/sugar/activity/bundle.py
@@ -23,8 +23,6 @@ class Bundle:
self._valid = False
def _parse_info(self, info_path):
- base_path = os.path.dirname(info_path)
-
cp = ConfigParser()
cp.read([info_path])
@@ -55,9 +53,10 @@ class Bundle:
if cp.has_option(section, 'icon'):
icon = cp.get(section, 'icon')
if gtk.icon_theme_get_default().has_icon(icon):
- self._icon = 'theme:' + icon
+ self._icon = 'theme:' + icon
else:
- self._icon = os.path.join(base_path, icon + ".svg")
+ activity_path = os.path.join(self._path, 'activity')
+ self._icon = os.path.join(activity_path, icon + ".svg")
if cp.has_option(section, 'activity_version'):
self._activity_version = int(cp.get(section, 'activity_version'))