From 400875c6c625ffbb9d1f52bcf5820e78610e00bb 2013-03-04 19:59:10 From: Bradley M. Froehle Date: 2013-03-04 19:59:10 Subject: [PATCH] Merge pull request #2994 from minrk/expanduser expanduser on %%file targets --- diff --git a/IPython/core/magics/osm.py b/IPython/core/magics/osm.py index 6c9da55..cbba198 100644 --- a/IPython/core/magics/osm.py +++ b/IPython/core/magics/osm.py @@ -711,7 +711,7 @@ class OSMagics(Magics): For frontends that do not support stdin (Notebook), -f is implied. """ args = magic_arguments.parse_argstring(self.file, line) - filename = unquote_filename(args.filename) + filename = os.path.expanduser(unquote_filename(args.filename)) if os.path.exists(filename): if args.amend: