Appearance
module = imp.new_module('__tmp__module') module.__dict__["__file__"] = "name" exec(content, module.__dict__)