From 4cb54af5da75c008e172582a615a4c7fffaaf3f4 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 27 Mar 2012 13:21:23 +0000 Subject: enable reloading of plugins --- (limited to 'TurtleArt') diff --git a/TurtleArt/tapalette.py b/TurtleArt/tapalette.py index da80386..27a3956 100644 --- a/TurtleArt/tapalette.py +++ b/TurtleArt/tapalette.py @@ -141,7 +141,6 @@ class Palette(): palette_blocks.insert(i, []) block_colors.insert(i, self._colors) else: - # debug_output('Palette %s already defined' % (self._name)) return # Special name entry is needed for help hover mechanism @@ -236,6 +235,7 @@ class Palette(): block.set_hidden() block.add_block() + def make_palette(palette_name, colors=None, help_string=None, position=None): """ Palette helper function """ if colors is None: diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 0d0ce49..499eefb 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -301,13 +301,13 @@ class TurtleArtWindow(): try: exec f in globals(), plugins self._plugins.append(plugins.values()[0](self)) - debug_output('successfully importing %s' % (plugin_class), + debug_output('Successfully importing %s' % (plugin_class), self.running_sugar) # Add the icon dir to the icon_theme search path self._add_plugin_icon_dir(os.path.join(self._get_plugin_home(), plugin_dir)) except ImportError, e: - debug_output('failed to import %s: %s' % (plugin_class, str(e)), + debug_output('Failed to import %s: %s' % (plugin_class, str(e)), self.running_sugar) def _add_plugin_icon_dir(self, dirname): -- cgit v0.9.1