Browse Source

move debugging a bit earlier, turns out that the trouble was a

missing global, but this is good anyways, it means that the
submodules can use this too now...

[git-p4: depot-paths = "//depot/": change = 847]
v0.3
John-Mark Gurney 19 years ago
parent
commit
22c9533467
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      pymediaserv

+ 9
- 4
pymediaserv View File

@@ -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])



||||||
x
 
000:0
Loading…
Cancel
Save