Commits

zuroc  committed 8ae38f3

f

  • Participants
  • Parent commits 4ad3abd

Comments (0)

Files changed (1)

File zweb/config_loader.py

         prepare = getattr(mod, 'pre_config', None)
         if prepare:
             prepare_list.append(prepare)
+            #print mod, prepare
 
         finish = getattr(mod, 'post_config', None)
         if finish:
-            finish_list.append(finish)
+            finish_list.insert(0, finish)
+            #print mod, finish 
         
     for i in args:
         _load(i)
 
-    funclist = prepare_list+list(reversed(finish_list))
+    funclist = prepare_list+finish_list
     for _ in funclist:
         _(self)
-
+#    print funclist
     sys.path.pop(0)
     return self