From e2ca60d1dfd74671f500503850f4d1e823e2ae14 2013-07-31 01:16:57 From: MinRK Date: 2013-07-31 01:16:57 Subject: [PATCH] don't run init_profile_dir twice --- diff --git a/IPython/core/application.py b/IPython/core/application.py index 5b7bd5e..f2c0c22 100644 --- a/IPython/core/application.py +++ b/IPython/core/application.py @@ -268,6 +268,9 @@ class BaseIPythonApplication(Application): def init_profile_dir(self): """initialize the profile dir""" self._in_init_profile_dir = True + if self.profile_dir is not None: + # already ran + return try: # location explicitly specified: location = self.config.ProfileDir.location