ipython/ipython — pull request #1762 by minrk (2012-05-24 22:02:41+00:00)
Title: add `locate` entry points

These would be useful for quickly locating IPython directories and profiles from other (non-Python) applications.

Examples:

$> ipython locate
/Users/me/.ipython

$> ipython locate profile foo
/Users/me/.ipython/profile_foo

$> ipython locate profile
/Users/me/.ipython/profile_default

$> ipython locate profile dne
[ProfileLocate] Profile u'dne' not found.

`locate profile` is also available as `profile locate`, since that subcommand tree already exists.