##// END OF EJS Templates
Backport PR #2994: expanduser on %%file targets...
MinRK -
Show More
@@ -706,7 +706,7 b' class OSMagics(Magics):'
706 For frontends that do not support stdin (Notebook), -f is implied.
706 For frontends that do not support stdin (Notebook), -f is implied.
707 """
707 """
708 args = magic_arguments.parse_argstring(self.file, line)
708 args = magic_arguments.parse_argstring(self.file, line)
709 filename = unquote_filename(args.filename)
709 filename = os.path.expanduser(unquote_filename(args.filename))
710
710
711 if os.path.exists(filename):
711 if os.path.exists(filename):
712 if args.amend:
712 if args.amend:
General Comments 0
You need to be logged in to leave comments. Login now