From 82f0f01d896a8dd644c1ffe4732c6e816872689d Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 31 Oct 2013 21:14:19 +0000 Subject: add plugins to global_objects dictionary --- (limited to 'TurtleArt') diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 5d8f715..c3e6336 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -388,10 +388,11 @@ class TurtleArtWindow(): # Add the icon dir to the icon_theme search path self._add_plugin_icon_dir(os.path.join(self._get_plugin_home(), plugin_dir)) + # Add the plugin to the list of global objects + global_objects[plugin_class] = self.turtleart_plugins[-1] except Exception as e: debug_output('Failed to load %s: %s' % (plugin_class, str(e)), self.running_sugar) - def _add_plugin_icon_dir(self, dirname): ''' If there is an icon subdir, add it to the search path. ''' -- cgit v0.9.1