Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-04-15 13:06:04 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-04-15 13:06:04 (GMT)
commit218f9e10ae72860da3134183ca997196ab14ad29 (patch)
treeb0c7901250d6af7fc471f4417660e0d5dbeda0b6 /shell
parent2910d23716be4f8eae164bdc047cb7a7d22f3c22 (diff)
Load the modules from .la if the normal import fails
Diffstat (limited to 'shell')
-rw-r--r--shell/extensions/__init__.py6
1 files changed, 5 insertions, 1 deletions
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 *