|
|
@@ -8,13 +8,20 @@ |
|
|
|
# $Id$ |
|
|
|
# |
|
|
|
|
|
|
|
# make sure debugging is initalized first, other modules can be pulled in |
|
|
|
# before the "real" debug stuff is setup. (hmm I could make this a two |
|
|
|
# stage, where we simulate a namespace to either be thrown away when the |
|
|
|
# time comes, or merge into the correct one) |
|
|
|
import debug # my debugging module |
|
|
|
debug.doDebugging(True) # open up debugging port |
|
|
|
|
|
|
|
# Modules to import, maybe config file or something? |
|
|
|
def tryloadmodule(mod): |
|
|
|
try: |
|
|
|
return __import__(mod) |
|
|
|
except ImportError: |
|
|
|
import traceback |
|
|
|
traceback.print_exc() |
|
|
|
#import traceback |
|
|
|
#traceback.print_exc() |
|
|
|
pass |
|
|
|
|
|
|
|
# ZipStorage w/ tar support should be last as it will gobble up empty files. |
|
|
@@ -23,8 +30,6 @@ modmap = {} |
|
|
|
for i in modules: |
|
|
|
modmap[i] = tryloadmodule(i) |
|
|
|
|
|
|
|
import debug # my debugging module |
|
|
|
debug.doDebugging(True) # open up debugging port |
|
|
|
for i in modules: |
|
|
|
debug.insertnamespace(i, modmap[i]) |
|
|
|
|
|
|
|