From a846ffaf2e74823c781972e4f1f7d2996f96ec64 2013-10-22 23:18:02
From: Thomas Kluyver <takowl@gmail.com>
Date: 2013-10-22 23:18:02
Subject: [PATCH] Merge pull request #4371 from astrosilverio/master

Restored ipython profile locate dir and fixed typo. (Fixes #3708).
---

diff --git a/IPython/core/profileapp.py b/IPython/core/profileapp.py
index 79bfff0..0e93659 100644
--- a/IPython/core/profileapp.py
+++ b/IPython/core/profileapp.py
@@ -121,7 +121,7 @@ def list_bundled_profiles():
 
 
 class ProfileLocate(BaseIPythonApplication):
-    description = """print the path an IPython profile dir"""
+    description = """print the path to an IPython profile dir"""
     
     def parse_command_line(self, argv=None):
         super(ProfileLocate, self).parse_command_line(argv)
@@ -299,6 +299,7 @@ class ProfileApp(Application):
     subcommands = Dict(dict(
         create = (ProfileCreate, ProfileCreate.description.splitlines()[0]),
         list = (ProfileList, ProfileList.description.splitlines()[0]),
+        locate = (ProfileLocate, ProfileLocate.description.splitlines()[0]),
     ))
 
     def start(self):
@@ -310,4 +311,3 @@ class ProfileApp(Application):
             self.exit(1)
         else:
             return self.subapp.start()
-