From 36c1b75714971df1661ecb857d4a6dd5cdef91eb 2011-10-29 22:59:00 From: Alcides Date: 2011-10-29 22:59:00 Subject: [PATCH] - Patch applied. --- diff --git a/IPython/core/magic.py b/IPython/core/magic.py index bf65e55..8ab7022 100644 --- a/IPython/core/magic.py +++ b/IPython/core/magic.py @@ -1382,7 +1382,11 @@ Currently the magic system has the following functions:\n""" return arg_str = 'execfile(filename,prog_ns)' - namespace = locals() + namespace = { + 'execfile': self.shell.safe_execfile, + 'prog_ns': prog_ns, + 'filename': filename + } opts.merge(opts_def)