simulate shell expansion on %run arguments, at least tilde expansion #591

wants to merge 1 commit into


None yet

2 participants

hmeine commented Jul 18, 2011

I like to start scripts using %run instead of from the shell, but this prevents the use of paths starting with ~ for my home directory.

This patch simply applies os.path.expanduser to sys.argv; there might be a better place and possibly a more complete expansion implementation, but this really scratches an itch.

minrk commented Jul 18, 2011

That seems nice, thanks!

@minrk minrk added a commit that referenced this pull request Jul 18, 2011
@minrk minrk Merge PR #591
closes gh-591
@minrk minrk closed this in 7deb8e8 Jul 18, 2011
@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
@minrk minrk Merge PR #591
closes gh-591
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment