Skip to content
Browse files

- Patch applied.

  • Loading branch information...
1 parent 9f8864d commit 6639b391e081d09af7d5dd85fa32dde6292fa9a1 Alcides committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 IPython/core/magic.py
View
6 IPython/core/magic.py
@@ -1382,7 +1382,11 @@ def magic_prun(self, parameter_s ='',user_mode=1,
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)

0 comments on commit 6639b39

Please sign in to comment.
Something went wrong with that request. Please try again.