ipython/ipython — pull request #3840 by minrk (2013-07-30 17:57:07+00:00)
Title: prevent profile_dir from being undefined

can happen when other traits are configured that depend on profile_dir, e.g. `NotebookApp.extra_static_paths`.

This ensures that `init_profile_dir` fires prior to any reference to the profile directory.

closes #3837