From 218f9e10ae72860da3134183ca997196ab14ad29 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 15 Apr 2007 13:06:04 +0000 Subject: Load the modules from .la if the normal import fails --- (limited to 'shell') diff --git a/shell/extensions/__init__.py b/shell/extensions/__init__.py index d7f9232..8290d41 100644 --- a/shell/extensions/__init__.py +++ b/shell/extensions/__init__.py @@ -14,4 +14,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -from extensions._extensions import * +try: + from extensions._extensions import * +except ImportError: + from sugar import ltihooks + from extensions._extensions import * -- cgit v0.9.1