[pybank] Blacklist the cairo typelib so it doesn't conflict with the cairo python module



commit f5f4c5ee4992fb938d5137638f984424ddcab1ac
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date:   Wed May 27 15:21:16 2009 +0200

    Blacklist the cairo typelib so it doesn't conflict with the cairo python module
---
 bank/importer.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/bank/importer.py b/bank/importer.py
index ed64764..232354b 100644
--- a/bank/importer.py
+++ b/bank/importer.py
@@ -29,6 +29,8 @@ class DynamicImporter(object):
 
     @staticmethod
     def find_module(name, path=None):
+        if name == 'cairo':
+            return None
         namespace = repository.require(name)
         if namespace:
             return DynamicImporter(name, path)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]