X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=python%2Fashd%2Fwsgidir.py;h=8b473f2844b1450e98f38136751673ce94972792;hp=f10111799aaf0c2395a24ffebd618e1f24c94c56;hb=173e0e9efec5ae690cc157fe238113fcd814895e;hpb=188cd02daf85ef68a832deab4fcbf0daaf2d4573 diff --git a/python/ashd/wsgidir.py b/python/ashd/wsgidir.py index f101117..8b473f2 100644 --- a/python/ashd/wsgidir.py +++ b/python/ashd/wsgidir.py @@ -38,7 +38,7 @@ you will probably want to use the getmod() function in this module. """ import os, threading, types -from . import wsgiutil +import wsgiutil __all__ = ["application", "wmain", "getmod", "cachedmod"] @@ -102,7 +102,7 @@ def getmod(path): code = compile(text, path, "exec") mod = types.ModuleType(mangle(path)) mod.__file__ = path - exec(code, mod.__dict__) + exec code in mod.__dict__ entry = cachedmod(mod, sb.st_mtime) modcache[path] = entry return entry