python: Moved the Python 3 files to their own directory and restored Python 2 files.
[ashd.git] / python / ashd / wsgidir.py
index f101117..8b473f2 100644 (file)
@@ -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