X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=python%2Fashd%2Fwsgidir.py;h=f10111799aaf0c2395a24ffebd618e1f24c94c56;hp=8b473f2844b1450e98f38136751673ce94972792;hb=55fa3f634594cedabf75182bd6404463c091ff63;hpb=5fc5488205264fd1e202bd45b83f701971526847 diff --git a/python/ashd/wsgidir.py b/python/ashd/wsgidir.py index 8b473f2..f101117 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 -import wsgiutil +from . 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 in mod.__dict__ + exec(code, mod.__dict__) entry = cachedmod(mod, sb.st_mtime) modcache[path] = entry return entry