diff pyloader/factory.py @ 62:97800b02f636

shouldnt need to go through the whole sequence when youre wrapping a known section
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Jun 2011 09:11:47 -0700
parents cc361ad8a692
children 995b831041be
line wrap: on
line diff
--- a/pyloader/factory.py	Thu Jun 09 09:09:48 2011 -0700
+++ b/pyloader/factory.py	Thu Jun 09 09:11:47 2011 -0700
@@ -165,10 +165,11 @@
 
                     # create wrapper
                     config[name] = wrapper_options
+                    if _path == wrapped_name:
+                        return
                     name = wrapped_name
                     path = _path
 
-                    
 
             # make a dict for the section
             path = path % defaults